diff options
author | Jesse Hallam <jesse.hallam@gmail.com> | 2018-03-05 07:18:22 -0500 |
---|---|---|
committer | Joram Wilander <jwawilander@gmail.com> | 2018-03-05 12:18:22 +0000 |
commit | fbff94f3be1bf596f2b94f593687d3b162413de9 (patch) | |
tree | 2aea8cf109b1623a207ab38ea28bdf816faf3b09 /app/config_test.go | |
parent | fa98175a46106ba116e6e6cd05577fb03308ceac (diff) | |
download | chat-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.go | 10 |
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") + } +} |