diff --git a/__tests__/components/__snapshots__/transaction-item.test.js.snap b/__tests__/components/__snapshots__/transaction-item.test.js.snap
index fc456c6..a39e0ba 100644
--- a/__tests__/components/__snapshots__/transaction-item.test.js.snap
+++ b/__tests__/components/__snapshots__/transaction-item.test.js.snap
@@ -29,7 +29,7 @@ exports[`
- 23:20 PM + 17:01 PM
diff --git a/__tests__/components/transaction-item.test.js b/__tests__/components/transaction-item.test.js index 2e8ae3f..f3c29aa 100644 --- a/__tests__/components/transaction-item.test.js +++ b/__tests__/components/transaction-item.test.js @@ -8,7 +8,21 @@ import 'jest-dom/extend-expect'; import { TransactionItemComponent } from '../../app/components/transaction-item'; import { appTheme } from '../../app/theme'; -afterEach(cleanup); +let originalDate; + +beforeEach(() => { + originalDate = global.Date; + global.Date = class extends Date { + constructor() { + super(); + return '2019-03-05T19:58:35.457Z'; + } + }; +}); +afterEach(() => { + global.Date = originalDate; + cleanup(); +}); describe('