streamdeck-obs-replay/obsws/client_test.go

12 lines
278 B
Go
Raw Normal View History

2020-01-15 04:32:53 +00:00
package obsws
import "testing"
func TestGetAuth(t *testing.T) {
expected := "zTM5ki6L2vVvBQiTG9ckH1Lh64AbnCf6XZ226UmnkIA="
observed := getAuth("password", "salt", "challenge")
if observed != expected {
t.Errorf("expected auth == '%s', got '%s'", expected, observed)
}
}