Skip to content

Commit 1b37bbf

Browse files
committed
Add test
1 parent cb9999b commit 1b37bbf

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

src/webhooks/generic-notifier/generic-notifier.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ describe('generic messages webhook', function () {
107107
testPayload as GenericEvent
108108
);
109109

110-
expect(postMessageSpy).toHaveBeenCalledTimes(1);
110+
expect(postMessageSpy).toHaveBeenCalledTimes(2);
111111

112112
expect(response.statusCode).toBe(200);
113113
});

test/payloads/generic-notifier/testPayload.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,11 @@
66
"type": "slack",
77
"text": "Random text here",
88
"channels": ["#aaaaaa"]
9+
}, {
10+
"type": "service_notification",
11+
"service_name": "eng_pipes_gh_notifications",
12+
"text": "Random text here",
13+
"channels": ["#aaaaaa"]
914
}, {
1015
"type": "datadog",
1116
"title": "This is an Example Notification",

0 commit comments

Comments
 (0)