Skip to content

Commit 5136691

Browse files
fixing breaking braze test (#3688)
1 parent 9bd406e commit 5136691

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

packages/destination-actions/src/destinations/braze/ecommerceSingleProduct/__tests__/__snapshots__/snapshot.test.ts.snap

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ Object {
2424
"source": "Q#t9o",
2525
"variant_id": "Q#t9o",
2626
},
27-
"time": "2084-01-27T05:50:11.564Z",
27+
"time": Any<String>,
2828
"user_alias": Object {
2929
"alias_label": "Q#t9o",
3030
"alias_name": "Q#t9o",
@@ -50,7 +50,7 @@ Object {
5050
"source": "Q#t9o",
5151
"variant_id": "Q#t9o",
5252
},
53-
"time": "2084-01-27T05:50:11.564Z",
53+
"time": Any<String>,
5454
},
5555
],
5656
}

packages/destination-actions/src/destinations/braze/ecommerceSingleProduct/__tests__/snapshot.test.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ describe(`Testing snapshot for ${destinationSlug}'s ${actionSlug} destination ac
3333

3434
try {
3535
const json = JSON.parse(rawBody)
36+
json.events?.forEach((e: Record<string, unknown>) => { e.time = expect.any(String) })
3637
expect(json).toMatchSnapshot()
3738
return
3839
} catch (err) {
@@ -66,6 +67,7 @@ describe(`Testing snapshot for ${destinationSlug}'s ${actionSlug} destination ac
6667

6768
try {
6869
const json = JSON.parse(rawBody)
70+
json.events?.forEach((e: Record<string, unknown>) => { e.time = expect.any(String) })
6971
expect(json).toMatchSnapshot()
7072
return
7173
} catch (err) {

0 commit comments

Comments
 (0)