fix(test): function execution order seems different on CI server?

This commit is contained in:
Ben Gotow 2015-06-05 18:51:10 -07:00
parent c2b4343880
commit 73ee5c0227

View file

@ -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)