summaryrefslogtreecommitdiffstats
path: root/model/user_test.go
diff options
context:
space:
mode:
authorChris Duarte <csduarte@users.noreply.github.com>2018-03-29 20:50:24 -0700
committerJoram Wilander <jwawilander@gmail.com>2018-03-29 23:50:24 -0400
commit80b3d14b56d685618c745fb6614bda93f59c18e5 (patch)
tree208e1a3652bc37f6800360c69bfd904cf8931195 /model/user_test.go
parent59606791a7b18b0a80626d5ec7f05b90b51c779d (diff)
downloadchat-80b3d14b56d685618c745fb6614bda93f59c18e5.tar.gz
chat-80b3d14b56d685618c745fb6614bda93f59c18e5.tar.bz2
chat-80b3d14b56d685618c745fb6614bda93f59c18e5.zip
Initialize timezone to a default state (#8560)
Diffstat (limited to 'model/user_test.go')
-rw-r--r--model/user_test.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/model/user_test.go b/model/user_test.go
index 4ef59f748..c1d1dafbd 100644
--- a/model/user_test.go
+++ b/model/user_test.go
@@ -39,6 +39,10 @@ func TestUserPreSave(t *testing.T) {
if user.Timezone == nil {
t.Fatal("Timezone is nil")
}
+
+ if user.Timezone["useAutomaticTimezone"] != "true" {
+ t.Fatal("Timezone is not set to default")
+ }
}
func TestUserPreUpdate(t *testing.T) {