BigW Consortium Gitlab

Commit 6176ca37 by Regis

change comp timeout to 0ms and test timeout to 10ms

parent b4e2f9f1
...@@ -78,7 +78,7 @@ export default { ...@@ -78,7 +78,7 @@ export default {
}); });
clearTimeout(this.timeoutId); clearTimeout(this.timeoutId);
}, 100); }, 0);
}, },
}, },
computed: { computed: {
......
...@@ -8,7 +8,6 @@ import issueShowData from './mock_data'; ...@@ -8,7 +8,6 @@ import issueShowData from './mock_data';
window.$ = $; window.$ = $;
const issueShowInterceptor = (request, next) => { const issueShowInterceptor = (request, next) => {
console.log(issueShowData);
next(request.respondWith(JSON.stringify(issueShowData), { next(request.respondWith(JSON.stringify(issueShowData), {
status: 200, status: 200,
})); }));
...@@ -43,7 +42,7 @@ describe('Issue Title', () => { ...@@ -43,7 +42,7 @@ describe('Issue Title', () => {
expect(issueShowComponent.$el.querySelector('.title').innerHTML) expect(issueShowComponent.$el.querySelector('.title').innerHTML)
.toContain('this is a title'); .toContain('this is a title');
done(); done();
}, 300); }, 10);
// 300 is just three times the Vue comps setTimeout to ensure pass // 10ms is just long enough for the update hook to fire
}); });
}); });
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment