diff options
author | Mike Greiling <mike@pixelcog.com> | 2019-07-11 22:32:37 +0300 |
---|---|---|
committer | Mike Greiling <mike@pixelcog.com> | 2019-07-11 22:32:37 +0300 |
commit | 7f8585c61831f18aa2d59879d251accda2fcbc7b (patch) | |
tree | 75048d9fe3c01b85025c876b7cc464d8bccc26ad /spec/javascripts/helpers | |
parent | 97482acb6f74b2ff53eba704930a1a7a8028f1e5 (diff) |
Update setImmediate use in karma specs
Diffstat (limited to 'spec/javascripts/helpers')
-rw-r--r-- | spec/javascripts/helpers/vuex_action_helper.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/spec/javascripts/helpers/vuex_action_helper.js b/spec/javascripts/helpers/vuex_action_helper.js index a1ef1bd49ea..c5de31a4138 100644 --- a/spec/javascripts/helpers/vuex_action_helper.js +++ b/spec/javascripts/helpers/vuex_action_helper.js @@ -89,7 +89,8 @@ export default ( payload, ); - return Promise.resolve(result) + return new Promise(setImmediate) + .then(() => result) .catch(error => { validateResults(); throw error; |