Skip to content

Commit 988f640

Browse files
committed
make proper dictionary keys in test
1 parent c7353a5 commit 988f640

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

ts/__tests__/IterableInApp.spec.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ beforeEach(() => {
2828

2929
test('trackInAppOpen_params_methodCalledWithParams', () => {
3030
// GIVEN an in-app message and a location
31-
const msg: IterableInAppMessage = new IterableInAppMessage('someMessageId', 123, new IterableInAppTrigger(IterableInAppTriggerType.event), new Date(1234), new Date(123123), true, new IterableInboxMetadata('title', 'subtitle', 'iconURL'), { CustomPayloadKey: 'CustomPayloadValue' }, false, 300.5)
31+
const msg: IterableInAppMessage = new IterableInAppMessage('someMessageId', 123, new IterableInAppTrigger(IterableInAppTriggerType.event), new Date(1234), new Date(123123), true, new IterableInboxMetadata('title', 'subtitle', 'iconURL'), { 'CustomPayloadKey': 'CustomPayloadValue' }, false, 300.5)
3232
const location: IterableInAppLocation = IterableInAppLocation.inApp
3333

3434
// WHEN Iterable.trackInAppOpen is called
@@ -40,7 +40,7 @@ test('trackInAppOpen_params_methodCalledWithParams', () => {
4040

4141
test('trackInAppClick_params_methodCalledWithParams', () => {
4242
// GIVEN an in-app message, a location, and a url
43-
const msg: IterableInAppMessage = new IterableInAppMessage('someMessageId', 123, new IterableInAppTrigger(IterableInAppTriggerType.event), new Date(1234), new Date(123123), true, new IterableInboxMetadata('title', 'subtitle', 'iconURL'), { CustomPayloadKey: 'CustomPayloadValue' }, false, 300.5)
43+
const msg: IterableInAppMessage = new IterableInAppMessage('someMessageId', 123, new IterableInAppTrigger(IterableInAppTriggerType.event), new Date(1234), new Date(123123), true, new IterableInboxMetadata('title', 'subtitle', 'iconURL'), { 'CustomPayloadKey': 'CustomPayloadValue' }, false, 300.5)
4444
const location: IterableInAppLocation = IterableInAppLocation.inApp
4545
const url: string = 'URLClicked'
4646

@@ -53,7 +53,7 @@ test('trackInAppClick_params_methodCalledWithParams', () => {
5353

5454
test('trackInAppClose_params_methodCalledWithParams', () => {
5555
// GIVEN an in-app messsage, a location, a close source, and a url
56-
const msg: IterableInAppMessage = new IterableInAppMessage('someMessageId', 123, new IterableInAppTrigger(IterableInAppTriggerType.event), new Date(1234), new Date(123123), true, new IterableInboxMetadata('title', 'subtitle', 'iconURL'), { CustomPayloadKey: 'CustomPayloadValue' }, false, 300.5)
56+
const msg: IterableInAppMessage = new IterableInAppMessage('someMessageId', 123, new IterableInAppTrigger(IterableInAppTriggerType.event), new Date(1234), new Date(123123), true, new IterableInboxMetadata('title', 'subtitle', 'iconURL'), { 'CustomPayloadKey': 'CustomPayloadValue' }, false, 300.5)
5757
const location: IterableInAppLocation = IterableInAppLocation.inbox
5858
const source: IterableInAppCloseSource = IterableInAppCloseSource.link
5959
const url: string = 'ClickedURL'

0 commit comments

Comments
 (0)