Skip to content

Commit

Permalink
fix configureNotifier
Browse files Browse the repository at this point in the history
  • Loading branch information
almostinf committed Nov 9, 2023
1 parent 66b1164 commit 0e3d388
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion notifier/notifier_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -221,14 +221,14 @@ func configureNotifier(t *testing.T) {
senderSettings := map[string]interface{}{
"type": "test",
}
notifier.sendersNameToType["test"] = "test"

sender.EXPECT().Init(senderSettings, logger, location, "15:04 02.01.2006").Return(nil)

notifier.RegisterSender(senderSettings, sender) //nolint

Convey("Should return one sender", t, func() {
So(notifier.GetSenders(), ShouldResemble, map[string]bool{"test": true})
So(notifier.sendersNameToType["test"], ShouldEqual, senderSettings["type"])
})
}

Expand Down

0 comments on commit 0e3d388

Please sign in to comment.