diff --git a/__test__/metadata/Product/updateProduct.test.ts b/__test__/metadata/Product/updateProduct.test.ts index f47410a..d7e1274 100644 --- a/__test__/metadata/Product/updateProduct.test.ts +++ b/__test__/metadata/Product/updateProduct.test.ts @@ -106,7 +106,9 @@ describe('Update Product', () => { ids: [ { _id: product?._id, - _updatedAt: product?._updatedAt, + _updatedAt: { + $date: product?._updatedAt, + }, }, ], }; @@ -230,7 +232,9 @@ describe('Update Product', () => { ids: [ { _id: product?._id, - _updatedAt: new Date(product?._updatedAt as string), + _updatedAt: { + $date: new Date(product?._updatedAt as string), + }, }, ], };