github.com/jfrerich/mattermost-server@v5.8.0-rc2+incompatible/services/timezones/timezones_test.go (about) 1 // Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. 2 // See License.txt for license information. 3 4 package timezones 5 6 import ( 7 "testing" 8 9 "github.com/stretchr/testify/assert" 10 ) 11 12 func TestTimezoneConfig(t *testing.T) { 13 tz1 := New("timezones.json") 14 assert.NotEmpty(t, tz1.GetSupported()) 15 16 tz2 := New("timezones_file_does_not_exists.json") 17 assert.Equal(t, DefaultSupportedTimezones, tz2.GetSupported()) 18 }