diff options
Diffstat (limited to 'api/webrtc_test.go')
-rw-r--r-- | api/webrtc_test.go | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/api/webrtc_test.go b/api/webrtc_test.go new file mode 100644 index 000000000..d6a690407 --- /dev/null +++ b/api/webrtc_test.go @@ -0,0 +1,18 @@ +// Copyright (c) 2016 Mattermost, Inc. All Rights Reserved. +// See License.txt for license information. + +package api + +import "testing" + +func TestWebrtcToken(t *testing.T) { + th := Setup().InitBasic() + + if _, err := th.BasicClient.GetWebrtcToken(); err != nil { + if err.Id != "api.webrtc.not_available.app_error" { + t.Fatal("Should have fail, webrtc not availble") + } + } else { + t.Fatal("Should have fail, webrtc not availble") + } +} |