diff options
author | Christopher Speller <crspeller@gmail.com> | 2018-05-18 08:37:43 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-05-18 08:37:43 -0700 |
commit | 0432f995ec27de9ee6cc2f5847d4a17fcc095a26 (patch) | |
tree | cc87cb698389d6191f6fc9d34fcacddb44850bb6 /model/config_test.go | |
parent | d5e1f7e2982c2fcc888ccac550b34095efbee217 (diff) | |
download | chat-0432f995ec27de9ee6cc2f5847d4a17fcc095a26.tar.gz chat-0432f995ec27de9ee6cc2f5847d4a17fcc095a26.tar.bz2 chat-0432f995ec27de9ee6cc2f5847d4a17fcc095a26.zip |
MM-9983 Requiring SiteURL to be set. (#8769)
* Requiring SiteURL to be set.
* Modifying to make tests pass.
* Fixing test.
Diffstat (limited to 'model/config_test.go')
-rw-r--r-- | model/config_test.go | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/model/config_test.go b/model/config_test.go index b7533145b..e39ecef3b 100644 --- a/model/config_test.go +++ b/model/config_test.go @@ -82,6 +82,13 @@ func TestConfigDefaultFileSettingsS3SSE(t *testing.T) { } } +func TestConfigDefaultSiteURL(t *testing.T) { + c1 := Config{} + c1.SetDefaults() + + assert.Equal(t, "", *c1.ServiceSettings.SiteURL, "SiteURL should be empty by default.") +} + func TestConfigDefaultServiceSettingsExperimentalGroupUnreadChannels(t *testing.T) { c1 := Config{} c1.SetDefaults() |