Skip to content

Commit 9545c08

Browse files
committed
unit tests
1 parent 98e5cca commit 9545c08

3 files changed

Lines changed: 4 additions & 2 deletions

File tree

tests/unit/models/inbound-callback-type-enum.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@ import { InboundCallbackTypeEnum } from '../../../models/inbound-callback-type-e
33
describe('InboundCallbackTypeEnum', () => {
44
test('should define the expected values', () => {
55
expect(InboundCallbackTypeEnum.MessageReceived).toBe('message-received');
6-
expect(InboundCallbackTypeEnum.RequestLocationResponse).toBe('request-location-response');
6+
expect(InboundCallbackTypeEnum.RequestedLocationResponse).toBe('requested-location-response');
77
expect(InboundCallbackTypeEnum.SuggestionResponse).toBe('suggestion-response');
88
expect(Object.values(InboundCallbackTypeEnum)).toEqual([
99
'message-received',
10-
'request-location-response',
10+
'requested-location-response',
1111
'suggestion-response'
1212
]);
1313
});

tests/unit/models/rbm-suggestion-response.test.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,11 @@ describe('RbmSuggestionResponse', () => {
55
const fixture: RbmSuggestionResponse = {
66
text: 'test-text',
77
postbackData: 'test-postbackData',
8+
pairedMessageId: 'test-pairedMessageId'
89
};
910

1011
expect(fixture.text).toBe('test-text');
1112
expect(fixture.postbackData).toBe('test-postbackData');
13+
expect(fixture.pairedMessageId).toBe('test-pairedMessageId');
1214
});
1315
});
File renamed without changes.

0 commit comments

Comments
 (0)