summaryrefslogtreecommitdiffstats
path: root/model/user_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'model/user_test.go')
-rw-r--r--model/user_test.go13
1 files changed, 0 insertions, 13 deletions
diff --git a/model/user_test.go b/model/user_test.go
index 899542a05..16ac2583b 100644
--- a/model/user_test.go
+++ b/model/user_test.go
@@ -39,19 +39,6 @@ func TestUserPreSave(t *testing.T) {
func TestUserPreUpdate(t *testing.T) {
user := User{Password: "test"}
user.PreUpdate()
-
- user.ThemeProps = StringMap{
- "codeTheme": "github",
- "awayIndicator": "#cdbd4e",
- "buttonColor": "invalid",
- }
- user.PreUpdate()
-
- if user.ThemeProps["codeTheme"] != "github" || user.ThemeProps["awayIndicator"] != "#cdbd4e" {
- t.Fatal("shouldn't have changed valid theme props")
- } else if user.ThemeProps["buttonColor"] != "#ffffff" {
- t.Fatal("should've changed invalid theme prop")
- }
}
func TestUserUpdateMentionKeysFromUsername(t *testing.T) {