Skip to content

Commit

Permalink
test(webhook): update snapshot for new wording
Browse files Browse the repository at this point in the history
  • Loading branch information
MrOrz committed Oct 8, 2024
1 parent 6de056b commit eea40f8
Show file tree
Hide file tree
Showing 3 changed files with 219 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -126,15 +126,85 @@ Do you want someone to fact-check this message?",
"contents": Object {
"body": Object {
"contents": Array [
Object {
"text": "We currently don’t have this message in our database.",
"type": "text",
"wrap": true,
},
Object {
"text": "If you believe:",
"type": "text",
"wrap": true,
},
Object {
"contents": Array [
Object {
"text": "Currently we don’t have this message in our database. If you think it is most likely a rumor, ",
"type": "span",
"flex": 0,
"margin": "none",
"text": "🤔",
"type": "text",
},
Object {
"contents": Array [
Object {
"text": "That it is most likely",
"type": "span",
},
Object {
"color": "#ffb600",
"decoration": "none",
"text": "a rumor",
"type": "span",
"weight": "bold",
},
],
"flex": 1,
"margin": "md",
"type": "text",
"wrap": true,
},
],
"layout": "horizontal",
"margin": "md",
"type": "box",
},
Object {
"contents": Array [
Object {
"flex": 0,
"margin": "none",
"text": "🌐",
"type": "text",
},
Object {
"contents": Array [
Object {
"text": "and you are willing to",
"type": "span",
},
Object {
"color": "#ffb600",
"decoration": "none",
"text": "make this messasge public",
"type": "span",
"weight": "bold",
},
],
"flex": 1,
"margin": "md",
"type": "text",
"wrap": true,
},
],
"layout": "horizontal",
"margin": "md",
"type": "box",
},
Object {
"contents": Array [
Object {
"color": "#ffb600",
"text": "press “🆕 Report to database” to make this message public on Cofacts database ",
"text": "press “🆕 Report to database” to make this message public on Cofacts website ",
"type": "span",
"weight": "bold",
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -561,15 +561,85 @@ Do you want someone to fact-check this message?",
"contents": Object {
"body": Object {
"contents": Array [
Object {
"text": "We currently don’t have this message in our database.",
"type": "text",
"wrap": true,
},
Object {
"text": "If you believe:",
"type": "text",
"wrap": true,
},
Object {
"contents": Array [
Object {
"text": "Currently we don’t have this message in our database. If you think it is most likely a rumor, ",
"type": "span",
"flex": 0,
"margin": "none",
"text": "🤔",
"type": "text",
},
Object {
"contents": Array [
Object {
"text": "That it is most likely",
"type": "span",
},
Object {
"color": "#ffb600",
"decoration": "none",
"text": "a rumor",
"type": "span",
"weight": "bold",
},
],
"flex": 1,
"margin": "md",
"type": "text",
"wrap": true,
},
],
"layout": "horizontal",
"margin": "md",
"type": "box",
},
Object {
"contents": Array [
Object {
"flex": 0,
"margin": "none",
"text": "🌐",
"type": "text",
},
Object {
"contents": Array [
Object {
"text": "and you are willing to",
"type": "span",
},
Object {
"color": "#ffb600",
"decoration": "none",
"text": "make this messasge public",
"type": "span",
"weight": "bold",
},
],
"flex": 1,
"margin": "md",
"type": "text",
"wrap": true,
},
],
"layout": "horizontal",
"margin": "md",
"type": "box",
},
Object {
"contents": Array [
Object {
"color": "#ffb600",
"text": "press “🆕 Report to database” to make this message public on Cofacts database ",
"text": "press “🆕 Report to database” to make this message public on Cofacts website ",
"type": "span",
"weight": "bold",
},
Expand Down
76 changes: 73 additions & 3 deletions src/webhook/handlers/__tests__/askingArticleSource.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -265,15 +265,85 @@ it('sends user submission consent if user forwarded the whole message', async ()
"contents": Object {
"body": Object {
"contents": Array [
Object {
"text": "We currently don’t have this message in our database.",
"type": "text",
"wrap": true,
},
Object {
"text": "If you believe:",
"type": "text",
"wrap": true,
},
Object {
"contents": Array [
Object {
"text": "Currently we don’t have this message in our database. If you think it is most likely a rumor, ",
"type": "span",
"flex": 0,
"margin": "none",
"text": "🤔",
"type": "text",
},
Object {
"contents": Array [
Object {
"text": "That it is most likely",
"type": "span",
},
Object {
"color": "#ffb600",
"decoration": "none",
"text": "a rumor",
"type": "span",
"weight": "bold",
},
],
"flex": 1,
"margin": "md",
"type": "text",
"wrap": true,
},
],
"layout": "horizontal",
"margin": "md",
"type": "box",
},
Object {
"contents": Array [
Object {
"flex": 0,
"margin": "none",
"text": "🌐",
"type": "text",
},
Object {
"contents": Array [
Object {
"text": "and you are willing to",
"type": "span",
},
Object {
"color": "#ffb600",
"decoration": "none",
"text": "make this messasge public",
"type": "span",
"weight": "bold",
},
],
"flex": 1,
"margin": "md",
"type": "text",
"wrap": true,
},
],
"layout": "horizontal",
"margin": "md",
"type": "box",
},
Object {
"contents": Array [
Object {
"color": "#ffb600",
"text": "press “🆕 Report to database” to make this message public on Cofacts database ",
"text": "press “🆕 Report to database” to make this message public on Cofacts website ",
"type": "span",
"weight": "bold",
},
Expand Down

0 comments on commit eea40f8

Please sign in to comment.