Replaces a hard-coded date in the job app spec
This commit is contained in:
parent
b02c2583d7
commit
234bc46b24
1 changed files with 4 additions and 1 deletions
|
@ -90,9 +90,12 @@ describe('Job App ', () => {
|
|||
|
||||
describe('triggered job', () => {
|
||||
beforeEach(() => {
|
||||
const aYearAgo = new Date();
|
||||
aYearAgo.setFullYear(aYearAgo.getFullYear() - 1);
|
||||
|
||||
mock
|
||||
.onGet(props.endpoint)
|
||||
.replyOnce(200, Object.assign({}, job, { started: '2017-05-24T10:59:52.000+01:00' }));
|
||||
.replyOnce(200, Object.assign({}, job, { started: aYearAgo.toISOString() }));
|
||||
vm = mountComponentWithStore(Component, { props, store });
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in a new issue