Skip to content

Commit

Permalink
fix: Fixed issue with WA Template interface from older, incorrect spec (
Browse files Browse the repository at this point in the history
  • Loading branch information
dragonmantank authored Nov 16, 2022
1 parent e2457c8 commit 52de295
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/messages/__tests__/messages.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ describe('Messages', () => {
${new MessengerVideo({ url: 'http://example.com/video.mp4' }, '12225551234', '13335551234')} | ${'video'}
${new WhatsAppFile({ url: 'http://example.com/file.pdf' }, '12225551234', '13335551234')} | ${'file'}
${new MessengerFile({ url: 'http://example.com/file.pdf' }, '12225551234', '13335551234')} | ${'file'}
${new TemplateMessage({ name: 'MyNamespace:MyTemplate', parameters: [{ key: 'Bob Smith' }] }, '12225551234', '13335551234', 'en-GB')} | ${['template', 'whatsapp']}
${new TemplateMessage({ name: 'MyNamespace:MyTemplate', parameters: ['Bob Smith'] }, '12225551234', '13335551234', 'en-GB')} | ${['template', 'whatsapp']}
${new CustomMessage({ type: 'template', template: {} }, '12225551234', '13335551234')} | ${'custom'}
`(
'can send various multimedia messages',
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export interface MessageTemplate {
name: string
parameters: { key: string }[]
parameters: string[]
}

0 comments on commit 52de295

Please sign in to comment.