Skip to content

Commit 7a1689c

Browse files
test(webhook): add Slack signature and timestamp headers in unit test mocks
1 parent b7dd18d commit 7a1689c

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

functions/slack/test/unit.test.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,10 @@ const getSample = () => {
5454

5555
const getMocks = () => {
5656
const req = {
57-
headers: {},
57+
headers: {
58+
'x-slack-signature': 'v0=fakesignature',
59+
'x-slack-request-timestamp': `${Math.floor(Date.now() / 1000)}`,
60+
},
5861
query: {},
5962
body: {},
6063
get: function (header) {

0 commit comments

Comments
 (0)