Update setImmediate use in karma specs

This commit is contained in:
Mike Greiling 2019-07-11 14:32:37 -05:00
parent 97482acb6f
commit 7f8585c618
No known key found for this signature in database
GPG key ID: 0303DF507FA67596
2 changed files with 3 additions and 1 deletions

View file

@ -89,7 +89,8 @@ export default (
payload,
);
return Promise.resolve(result)
return new Promise(setImmediate)
.then(() => result)
.catch(error => {
validateResults();
throw error;

View file

@ -3,6 +3,7 @@
*/
import $ from 'jquery';
import 'core-js/features/set-immediate';
import 'vendor/jasmine-jquery';
import '~/commons';
import Vue from 'vue';