Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
sandbox.stub(api.default.trackers, 'tracker', t => delay.reject(0, new Error()))
expect(vm.$refs.executeAllMenuItem).to.be.ok
await Vue.nextTick()
vm.$refs.executeMenu.$el.click()
await Vue.nextTick()
const executeRaised = new Promise(resolve => vm.$on('execute', () => resolve()))
vm.$refs.executeAllMenuItem.$el.click()
await Vue.nextTick()
const delay5 = delay.reject(5)
await Promise.race([executeRaised, delay5])
})
sandbox.stub(api.default.trackers, 'all', () => delay.reject(0, error))