Skip to content
Snippets Groups Projects
Commit 234bc46b authored by Sam Beckham's avatar Sam Beckham
Browse files

Replaces a hard-coded date in the job app spec

parent b02c2583
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -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
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment