commit
4fc27b3ed9
1 changed files with 8 additions and 0 deletions
|
|
@ -31,3 +31,11 @@ func TestConnectionInvalid(t *testing.T) {
|
|||
t.Error(err)
|
||||
}
|
||||
}
|
||||
|
||||
func TestConnectionURI(t *testing.T) {
|
||||
conn := Connection{"sess-id", "sess-token", "sas", "sb://endpoint/.net/liveshare"}
|
||||
uri := conn.uri("connect")
|
||||
if uri != "wss://endpoint/.net:443/$hc/liveshare?sb-hc-action=connect&sb-hc-token=sas" {
|
||||
t.Errorf("uri is not correct, got: '%v'", uri)
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue