Skip to content

Commit

Permalink
add timestamps to mock data
Browse files Browse the repository at this point in the history
  • Loading branch information
dayhaysoos committed Nov 29, 2023
1 parent 2d5d703 commit fd0e10c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions use-shopping-cart/core/slice.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ function mockCartDetails(overrides1, overrides2) {
formattedValue: '$8.00',
price_data: {},
product_data: {},
timestamp: new Date().toISOString(),
...overrides1
},
[`id_efg${counter}`]: {
Expand All @@ -41,6 +42,7 @@ function mockCartDetails(overrides1, overrides2) {
formattedValue: '$10.00',
price_data: {},
product_data: {},
timestamp: new Date().toISOString(),
...overrides2
}
}
Expand Down

0 comments on commit fd0e10c

Please sign in to comment.