diff --git a/api/controller/contact_test.go b/api/controller/contact_test.go index 8144f2cf4..7b2411448 100644 --- a/api/controller/contact_test.go +++ b/api/controller/contact_test.go @@ -890,7 +890,7 @@ func TestRemoveContact(t *testing.T) { Convey("With emergency contact", func() { emergencyContact := datatypes.EmergencyContact{ ContactID: contactID, - HeartbeatTypes: []datatypes.HeartbeatType{datatypes.HeartbeatNotifierOff}, + HeartbeatTypes: []datatypes.HeartbeatType{datatypes.HeartbeatNotifier}, } dataBase.EXPECT().GetTeamSubscriptionIDs(teamID).Return(make([]string, 0), nil) dataBase.EXPECT().GetEmergencyContact(contactID).Return(emergencyContact, nil) diff --git a/api/controller/emergency_contact_test.go b/api/controller/emergency_contact_test.go index b0c5c0d14..85b62cd31 100644 --- a/api/controller/emergency_contact_test.go +++ b/api/controller/emergency_contact_test.go @@ -21,7 +21,7 @@ var ( testEmergencyContact = datatypes.EmergencyContact{ ContactID: testContactID, - HeartbeatTypes: []datatypes.HeartbeatType{datatypes.HeartbeatNotifierOff}, + HeartbeatTypes: []datatypes.HeartbeatType{datatypes.HeartbeatNotifier}, } testEmergencyContact2 = datatypes.EmergencyContact{ ContactID: testContactID2, @@ -30,7 +30,7 @@ var ( testEmergencyContactDTO = dto.EmergencyContact{ ContactID: testContactID, - HeartbeatTypes: []datatypes.HeartbeatType{datatypes.HeartbeatNotifierOff}, + HeartbeatTypes: []datatypes.HeartbeatType{datatypes.HeartbeatNotifier}, } testEmergencyContact2DTO = dto.EmergencyContact{ ContactID: testContactID2, @@ -286,7 +286,7 @@ func TestUpdateEmergencyContact(t *testing.T) { Convey("With empty contact id", func() { emergencyContactDTO := dto.EmergencyContact{ - HeartbeatTypes: []datatypes.HeartbeatType{datatypes.HeartbeatNotifierOff}, + HeartbeatTypes: []datatypes.HeartbeatType{datatypes.HeartbeatNotifier}, } database.EXPECT().SaveEmergencyContact(testEmergencyContact).Return(nil) diff --git a/api/dto/emergency_contact_test.go b/api/dto/emergency_contact_test.go index 4e4790dfd..8d0725fae 100644 --- a/api/dto/emergency_contact_test.go +++ b/api/dto/emergency_contact_test.go @@ -12,7 +12,7 @@ var ( testEmergencyContact = datatypes.EmergencyContact{ ContactID: testContactID, - HeartbeatTypes: []datatypes.HeartbeatType{datatypes.HeartbeatNotifierOff}, + HeartbeatTypes: []datatypes.HeartbeatType{datatypes.HeartbeatNotifier}, } ) diff --git a/api/handler/contact_test.go b/api/handler/contact_test.go index 8369c504b..e307fb090 100644 --- a/api/handler/contact_test.go +++ b/api/handler/contact_test.go @@ -837,7 +837,7 @@ func TestRemoveContact(t *testing.T) { emergencyContact := datatypes.EmergencyContact{ ContactID: contactID, - HeartbeatTypes: []datatypes.HeartbeatType{datatypes.HeartbeatNotifierOff}, + HeartbeatTypes: []datatypes.HeartbeatType{datatypes.HeartbeatNotifier}, } mockDb.EXPECT().GetUserSubscriptionIDs(defaultLogin).Return([]string{"test"}, nil).Times(1) diff --git a/api/handler/emergency_contact_test.go b/api/handler/emergency_contact_test.go index d2ac2774a..ac4bd67b4 100644 --- a/api/handler/emergency_contact_test.go +++ b/api/handler/emergency_contact_test.go @@ -28,7 +28,7 @@ var ( testEmergencyContact = datatypes.EmergencyContact{ ContactID: testContactID, - HeartbeatTypes: []datatypes.HeartbeatType{datatypes.HeartbeatNotifierOff}, + HeartbeatTypes: []datatypes.HeartbeatType{datatypes.HeartbeatNotifier}, } testEmergencyContact2 = datatypes.EmergencyContact{ ContactID: testContactID2, @@ -247,7 +247,7 @@ func TestCreateEmergencyContact(t *testing.T) { Convey("Try to create emergency contact without contact id", func() { emergencyContact := datatypes.EmergencyContact{ - HeartbeatTypes: []datatypes.HeartbeatType{datatypes.HeartbeatNotifierOff}, + HeartbeatTypes: []datatypes.HeartbeatType{datatypes.HeartbeatNotifier}, } emergencyContactDTO := dto.EmergencyContact(emergencyContact) @@ -473,7 +473,7 @@ func TestUpdateEmergencyContact(t *testing.T) { Convey("Successfully update emergency contact without contact id in dto", func() { emergencyContact := datatypes.EmergencyContact{ - HeartbeatTypes: []datatypes.HeartbeatType{datatypes.HeartbeatNotifierOff}, + HeartbeatTypes: []datatypes.HeartbeatType{datatypes.HeartbeatNotifier}, } emergencyContactDTO := dto.EmergencyContact(emergencyContact)