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 {
});
clearTimeout(this.timeoutId);
}, 100);
}, 0);
},
},
computed: {
......
......@@ -8,7 +8,6 @@ import issueShowData from './mock_data';
window.$ = $;
const issueShowInterceptor = (request, next) => {
console.log(issueShowData);
next(request.respondWith(JSON.stringify(issueShowData), {
status: 200,
}));
......@@ -43,7 +42,7 @@ describe('Issue Title', () => {
expect(issueShowComponent.$el.querySelector('.title').innerHTML)
.toContain('this is a title');
done();
}, 300);
// 300 is just three times the Vue comps setTimeout to ensure pass
}, 10);
// 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