Skip to content
Permalink
Browse files

fix(tests): use expect(await ...) syntax per @MarshallOfSound

  • Loading branch information
anulman authored and MarshallOfSound committed Feb 23, 2017
1 parent ff16744 commit 59ddf9afb51c22b942f88d0a7afd632b5549c4f5
Showing with 2 additions and 2 deletions.
  1. +2 −2 test/slow/api_spec_slow.js
@@ -170,11 +170,11 @@ describe(`electron-forge API (with installer=${installer.substr(12)})`, () => {
it('can package to outDir without errors', async () => {
const outDir = `${dir}/foo`;

expect(fs.existsSync(outDir)).to.equal(false);
expect(await fs.exists(outDir)).to.equal(false);

await forge.package({ dir, outDir });

expect(fs.existsSync(outDir)).to.equal(true);
expect(await fs.exists(outDir)).to.equal(true);
});

it('can package without errors with native pre-gyp deps installed', async () => {

0 comments on commit 59ddf9a

Please sign in to comment.
You can’t perform that action at this time.