summaryrefslogtreecommitdiffstats
path: root/app/config_test.go
diff options
context:
space:
mode:
authorJesse Hallam <jesse.hallam@gmail.com>2018-03-05 07:18:22 -0500
committerJoram Wilander <jwawilander@gmail.com>2018-03-05 12:18:22 +0000
commitfbff94f3be1bf596f2b94f593687d3b162413de9 (patch)
tree2aea8cf109b1623a207ab38ea28bdf816faf3b09 /app/config_test.go
parentfa98175a46106ba116e6e6cd05577fb03308ceac (diff)
downloadchat-fbff94f3be1bf596f2b94f593687d3b162413de9.tar.gz
chat-fbff94f3be1bf596f2b94f593687d3b162413de9.tar.bz2
chat-fbff94f3be1bf596f2b94f593687d3b162413de9.zip
MM-8604: emit config/license websocket events (#8371)
Diffstat (limited to 'app/config_test.go')
-rw-r--r--app/config_test.go10
1 files changed, 10 insertions, 0 deletions
diff --git a/app/config_test.go b/app/config_test.go
index 5ee999f0f..051fa8fd8 100644
--- a/app/config_test.go
+++ b/app/config_test.go
@@ -63,3 +63,13 @@ func TestAsymmetricSigningKey(t *testing.T) {
assert.NotNil(t, th.App.AsymmetricSigningKey())
assert.NotEmpty(t, th.App.ClientConfig()["AsymmetricSigningPublicKey"])
}
+
+func TestClientConfigWithNoAccounts(t *testing.T) {
+ th := Setup().InitBasic()
+ defer th.TearDown()
+
+ config := th.App.ClientConfigWithNoAccounts()
+ if _, ok := config["NoAccounts"]; !ok {
+ t.Fatal("expected NoAccounts in returned config")
+ }
+}