Skip to content

Commit

Permalink
fix(webhook): update snapshot on new askingArticleSubmissionConsent i…
Browse files Browse the repository at this point in the history
…nput format
  • Loading branch information
MrOrz committed Jan 3, 2024
1 parent 4e5e182 commit f51a57e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ Do you want someone to fact-check this message?",
"contents": Array [
Object {
"action": Object {
"data": "{\\"input\\":\\"__POSTBACK_YES__\\",\\"sessionId\\":0,\\"state\\":\\"ASKING_ARTICLE_SUBMISSION_CONSENT\\"}",
"data": "{\\"input\\":[0],\\"sessionId\\":0,\\"state\\":\\"ASKING_ARTICLE_SUBMISSION_CONSENT\\"}",
"displayText": "🆕 Report to database",
"label": "🆕 Report to database",
"type": "postback",
Expand All @@ -167,7 +167,7 @@ Do you want someone to fact-check this message?",
},
Object {
"action": Object {
"data": "{\\"input\\":\\"__POSTBACK_NO__\\",\\"sessionId\\":0,\\"state\\":\\"ASKING_ARTICLE_SUBMISSION_CONSENT\\"}",
"data": "{\\"input\\":[],\\"sessionId\\":0,\\"state\\":\\"ASKING_ARTICLE_SUBMISSION_CONSENT\\"}",
"displayText": "Don’t report",
"label": "Don’t report",
"type": "postback",
Expand Down
4 changes: 2 additions & 2 deletions src/webhook/handlers/__tests__/askingArticleSource.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,7 @@ it('sends user submission consent if user forwarded the whole message', async ()
"contents": Array [
Object {
"action": Object {
"data": "{\\"input\\":\\"__POSTBACK_YES__\\",\\"sessionId\\":0,\\"state\\":\\"ASKING_ARTICLE_SUBMISSION_CONSENT\\"}",
"data": "{\\"input\\":[0],\\"sessionId\\":0,\\"state\\":\\"ASKING_ARTICLE_SUBMISSION_CONSENT\\"}",
"displayText": "🆕 Report to database",
"label": "🆕 Report to database",
"type": "postback",
Expand All @@ -306,7 +306,7 @@ it('sends user submission consent if user forwarded the whole message', async ()
},
Object {
"action": Object {
"data": "{\\"input\\":\\"__POSTBACK_NO__\\",\\"sessionId\\":0,\\"state\\":\\"ASKING_ARTICLE_SUBMISSION_CONSENT\\"}",
"data": "{\\"input\\":[],\\"sessionId\\":0,\\"state\\":\\"ASKING_ARTICLE_SUBMISSION_CONSENT\\"}",
"displayText": "Don’t report",
"label": "Don’t report",
"type": "postback",
Expand Down

0 comments on commit f51a57e

Please sign in to comment.