Skip to content

Commit

Permalink
getTemplate and listTemplates tests typed
Browse files Browse the repository at this point in the history
  • Loading branch information
Victor Park committed Aug 20, 2021
1 parent d403249 commit 1771588
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions test/lib/client.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import * as nock from 'nock';
import { Readable } from 'stream';
import { IContent, Channel, Client, TextContent, TemplateContent, FileContent, ITemplate, ContactsContent, LocationContent, MessageSubscription, MessageStatusSubscription, ISmsMessageBatch, SmsMessageBatch, IWhatsAppMessageBatch, WhatsAppMessageBatch } from '../../src';
import { IContent, Channel, Client, TextContent, TemplateContent, FileContent, ITemplate, IResponseTemplate, ContactsContent, LocationContent, MessageSubscription, MessageStatusSubscription, ISmsMessageBatch, SmsMessageBatch, IWhatsAppMessageBatch, WhatsAppMessageBatch } from '../../src';

describe('Client', () => {

Expand Down Expand Up @@ -1470,7 +1470,7 @@ describe('Client', () => {
describe('Templates', () => {

it('should list templates', async () => {
const requestTemplates = [{
const requestTemplates: IResponseTemplate[] = [{
name: 'Sandbox - Shipping Update',
locale: 'pt_BR',
channel: 'WHATSAPP',
Expand All @@ -1493,7 +1493,7 @@ describe('Client', () => {
createdAt: '2020-06-22T20:35:05.491Z',
updatedAt: '2020-06-22T20:35:05.491Z',
}];
const responseTemplates = [{
const responseTemplates: IResponseTemplate[] = [{
name: 'Sandbox - Shipping Update',
locale: 'pt_BR',
channel: 'WHATSAPP',
Expand Down Expand Up @@ -1528,7 +1528,7 @@ describe('Client', () => {
});

it('should get template with id', async () => {
const requestTemplates = {
const requestTemplates: IResponseTemplate = {
name: 'Sandbox - Shipping Update',
locale: 'pt_BR',
channel: 'WHATSAPP',
Expand All @@ -1551,7 +1551,7 @@ describe('Client', () => {
createdAt: '2020-06-22T20:35:05.491Z',
updatedAt: '2020-06-22T20:35:05.491Z',
};
const responseTemplates = {
const responseTemplates: IResponseTemplate = {
name: 'Sandbox - Shipping Update',
locale: 'pt_BR',
channel: 'WHATSAPP',
Expand Down

0 comments on commit 1771588

Please sign in to comment.