summaryrefslogtreecommitdiffstats
path: root/model/config_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'model/config_test.go')
-rw-r--r--model/config_test.go17
1 files changed, 17 insertions, 0 deletions
diff --git a/model/config_test.go b/model/config_test.go
new file mode 100644
index 000000000..62a77c133
--- /dev/null
+++ b/model/config_test.go
@@ -0,0 +1,17 @@
+// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
+// See License.txt for license information.
+
+package model
+
+import (
+ "testing"
+)
+
+func TestConfigDefaultFileSettingsDirectory(t *testing.T) {
+ c1 := Config{}
+ c1.SetDefaults()
+
+ if c1.FileSettings.Directory != "./data/" {
+ t.Fatal("FileSettings.Directory should default to './data/'")
+ }
+}