sway/subscribe_test.go

19 lines
266 B
Go
Raw Normal View History

2023-10-07 16:21:49 +02:00
package sway
import (
"context"
"fmt"
"testing"
)
func TestSubscribe(t *testing.T) {
events, err := Subscribe(context.Background(), EventTypeWindow, EventTypeWorkspace)
if err != nil {
t.Fatal(err)
}
for event := range events {
fmt.Println(event)
}
}