Commit 7f8585c6 authored by Mike Greiling's avatar Mike Greiling

Update setImmediate use in karma specs

parent 97482acb
...@@ -89,7 +89,8 @@ export default ( ...@@ -89,7 +89,8 @@ export default (
payload, payload,
); );
return Promise.resolve(result) return new Promise(setImmediate)
.then(() => result)
.catch(error => { .catch(error => {
validateResults(); validateResults();
throw error; throw error;
......
...@@ -3,6 +3,7 @@ ...@@ -3,6 +3,7 @@
*/ */
import $ from 'jquery'; import $ from 'jquery';
import 'core-js/features/set-immediate';
import 'vendor/jasmine-jquery'; import 'vendor/jasmine-jquery';
import '~/commons'; import '~/commons';
import Vue from 'vue'; import Vue from 'vue';
......
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