0.3.05
This commit is contained in:
@@ -54,6 +54,17 @@ func TestGatewaySettingsChangesReportsOnlyWhatMoved(t *testing.T) {
|
||||
}
|
||||
}
|
||||
|
||||
func TestNotificationDisplayDefaultsToHomeOnly(t *testing.T) {
|
||||
s := &Server{}
|
||||
if got := s.notificationDisplay(); got != store.NotificationDisplayHomeOnly {
|
||||
t.Fatalf("unset notification display = %q, want %q", got, store.NotificationDisplayHomeOnly)
|
||||
}
|
||||
s.gatewaySettings.set(store.GatewaySettings{NotificationDisplay: store.NotificationDisplayEverywhere})
|
||||
if got := s.notificationDisplay(); got != store.NotificationDisplayEverywhere {
|
||||
t.Fatalf("notification display = %q, want everywhere", got)
|
||||
}
|
||||
}
|
||||
|
||||
func TestLevelNameCoversTheVocabulary(t *testing.T) {
|
||||
for _, level := range store.GatewayLogLevels {
|
||||
if got := levelName(parseTestLevel(t, level)); got != level {
|
||||
|
||||
Reference in New Issue
Block a user