mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-02-21 22:54:11 +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", ->
|
describe "when given a draft id", ->
|
||||||
it "should create a template from the name and contents of the given draft", ->
|
it "should create a template from the name and contents of the given draft", ->
|
||||||
|
spyOn(TemplateStore, 'trigger')
|
||||||
|
spyOn(TemplateStore, '_populate')
|
||||||
runs ->
|
runs ->
|
||||||
TemplateStore._onCreateTemplate({draftLocalId: 'localid-b'})
|
TemplateStore._onCreateTemplate({draftLocalId: 'localid-b'})
|
||||||
waitsFor ->
|
waitsFor ->
|
||||||
fs.writeFile.callCount > 0
|
TemplateStore.trigger.callCount > 0
|
||||||
runs ->
|
runs ->
|
||||||
expect(TemplateStore.items().length).toEqual(1)
|
expect(TemplateStore.items().length).toEqual(1)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue