Skip to content

Commit 0c9bd61

Browse files
committed
test: fix tests
1 parent 91cc685 commit 0c9bd61

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

__test__/metadata/Product/updateProduct.test.ts

+6-2
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,9 @@ describe('Update Product', () => {
106106
ids: [
107107
{
108108
_id: product?._id,
109-
_updatedAt: product?._updatedAt,
109+
_updatedAt: {
110+
$date: product?._updatedAt,
111+
},
110112
},
111113
],
112114
};
@@ -230,7 +232,9 @@ describe('Update Product', () => {
230232
ids: [
231233
{
232234
_id: product?._id,
233-
_updatedAt: new Date(product?._updatedAt as string),
235+
_updatedAt: {
236+
$date: new Date(product?._updatedAt as string),
237+
},
234238
},
235239
],
236240
};

0 commit comments

Comments
 (0)