mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-09-12 23:54:45 +08:00
fix(specs) Fix FeatureUsageStore spec flakiness
This commit is contained in:
parent
af6074f6f5
commit
d89887c20f
1 changed files with 4 additions and 1 deletions
|
@ -1,4 +1,4 @@
|
|||
import {TaskQueue, TaskQueueStatusStore} from 'nylas-exports'
|
||||
import {Actions, TaskQueue, TaskQueueStatusStore} from 'nylas-exports'
|
||||
import FeatureUsageStore from '../../src/flux/stores/feature-usage-store'
|
||||
import Task from '../../src/flux/tasks/task'
|
||||
import SendFeatureUsageEventTask from '../../src/flux/tasks/send-feature-usage-event-task'
|
||||
|
@ -51,6 +51,9 @@ describe("FeatureUsageStore", function featureUsageStoreSpec() {
|
|||
IdentityStore._identity = ident
|
||||
})
|
||||
spyOn(TaskQueueStatusStore, "waitForPerformLocal").andReturn(Promise.resolve())
|
||||
spyOn(Actions, 'queueTask').andCallFake((task) => {
|
||||
task.performLocal()
|
||||
})
|
||||
});
|
||||
|
||||
afterEach(() => {
|
||||
|
|
Loading…
Add table
Reference in a new issue