Update setImmediate use in karma specs
This commit is contained in:
parent
97482acb6f
commit
7f8585c618
2 changed files with 3 additions and 1 deletions
|
@ -89,7 +89,8 @@ export default (
|
|||
payload,
|
||||
);
|
||||
|
||||
return Promise.resolve(result)
|
||||
return new Promise(setImmediate)
|
||||
.then(() => result)
|
||||
.catch(error => {
|
||||
validateResults();
|
||||
throw error;
|
||||
|
|
|
@ -3,6 +3,7 @@
|
|||
*/
|
||||
|
||||
import $ from 'jquery';
|
||||
import 'core-js/features/set-immediate';
|
||||
import 'vendor/jasmine-jquery';
|
||||
import '~/commons';
|
||||
import Vue from 'vue';
|
||||
|
|
Loading…
Reference in a new issue