mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-02-20 22:23:53 +08:00
fix(test): function execution order seems different on CI server?
This commit is contained in:
parent
c2b4343880
commit
73ee5c0227
1 changed files with 3 additions and 1 deletions
|
@ -115,10 +115,12 @@ describe "TemplateStore", ->
|
|||
|
||||
describe "when given a draft id", ->
|
||||
it "should create a template from the name and contents of the given draft", ->
|
||||
spyOn(TemplateStore, 'trigger')
|
||||
spyOn(TemplateStore, '_populate')
|
||||
runs ->
|
||||
TemplateStore._onCreateTemplate({draftLocalId: 'localid-b'})
|
||||
waitsFor ->
|
||||
fs.writeFile.callCount > 0
|
||||
TemplateStore.trigger.callCount > 0
|
||||
runs ->
|
||||
expect(TemplateStore.items().length).toEqual(1)
|
||||
|
||||
|
|
Loading…
Reference in a new issue