Skip to content

Commit

Permalink
Add test case with backslash
Browse files Browse the repository at this point in the history
  • Loading branch information
Robi9 committed Sep 15, 2023
1 parent 1a34252 commit 6f4bd49
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions handlers/weniwebchat/weniwebchat_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -241,12 +241,12 @@ var sendTestCases = []ChannelSendTestCase{
{
Label: "Quick Replies Send",
Text: "Simple Message",
QuickReplies: []string{"Yes", "No", "\\Slash"},
QuickReplies: []string{"Yes", "No", "\\/Slash", "\\\\Backslash"},
URN: "ext:371298371241",
Status: string(courier.MsgSent),
Path: "/send",
Headers: map[string]string{"Content-type": "application/json"},
RequestBody: `{"type":"message","to":"371298371241","from":"250788383383","message":{"type":"text","timestamp":"1616700878","text":"Simple Message","quick_replies":["Yes","No","\\Slash"]}}`,
RequestBody: `{"type":"message","to":"371298371241","from":"250788383383","message":{"type":"text","timestamp":"1616700878","text":"Simple Message","quick_replies":["Yes","No","/Slash","\\Backslash"]}}`,
ResponseStatus: 200,
SendPrep: prepareSendMsg,
},
Expand Down

0 comments on commit 6f4bd49

Please sign in to comment.