Skip to content

Commit

Permalink
updated tests to use static mockModifiedDate
Browse files Browse the repository at this point in the history
  • Loading branch information
kwelch committed Feb 1, 2017
1 parent 48a91a5 commit a463c70
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/store/store.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ import rootReducer from '../reducers';
describe('Store', () => {
let dateModified;
beforeAll(() => {
MockDate.set(new Date());
// hardcoded date for consistency in tests and snapshots on all machines
MockDate.set(new Date("1/31 23:14:01"));
dateModified = getFormattedDateTime();
});
afterAll(() => MockDate.reset());
Expand Down

0 comments on commit a463c70

Please sign in to comment.