Skip to content
Snippets Groups Projects
Commit 6176ca37 authored by Regis's avatar Regis
Browse files

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

parent b4e2f9f1
No related branches found
No related tags found
1 merge request!10865Render Description Realtime :tada:
Pipeline #
Loading
Loading
@@ -78,7 +78,7 @@ export default {
});
 
clearTimeout(this.timeoutId);
}, 100);
}, 0);
},
},
computed: {
Loading
Loading
Loading
Loading
@@ -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,
}));
Loading
Loading
@@ -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
});
});
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment