diff --git a/src/packages/snippets/spec/snippets-spec.coffee b/src/packages/snippets/spec/snippets-spec.coffee index 57dea1a42..d09c6503f 100644 --- a/src/packages/snippets/spec/snippets-spec.coffee +++ b/src/packages/snippets/spec/snippets-spec.coffee @@ -218,7 +218,7 @@ describe "Snippets extension", -> snippets.loaded = false snippets.loadAll() - waitsFor((-> snippets.loaded), "Waiting for all snippets to load", 5000) + waitsFor "all snippets to load", 5000, -> snippets.loaded runs -> expect(syntax.getProperty(['.test'], 'snippets.test')?.constructor).toBe Snippet @@ -232,7 +232,7 @@ describe "Snippets extension", -> snippets.loaded = false snippets.loadAll() - waitsFor((-> snippets.loaded), "Waiting for all snippets to load", 5000) + waitsFor "all snippets to load", 5000, -> snippets.loaded runs -> snippet = syntax.getProperty(['.source.js'], 'snippets.fun')