From 640994f6163ccca5fbbfd10f1eb80815ec48ae8d Mon Sep 17 00:00:00 2001 From: Zoltan Kochan Date: Wed, 4 Oct 2017 01:22:08 +0300 Subject: [PATCH] test(rebuild): await for async asserts --- test/rebuild.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/rebuild.ts b/test/rebuild.ts index 8e9565a337..2b3a8c6cdb 100644 --- a/test/rebuild.ts +++ b/test/rebuild.ts @@ -43,8 +43,8 @@ test('rebuilds specific dependencies', async function (t: tape.Test) { await rebuildPkgs(['install-scripts-example-for-pnpm'], testDefaults()) - project.hasNot('pre-and-postinstall-scripts-example/generated-by-preinstall') - project.hasNot('pre-and-postinstall-scripts-example/generated-by-postinstall') + await project.hasNot('pre-and-postinstall-scripts-example/generated-by-preinstall') + await project.hasNot('pre-and-postinstall-scripts-example/generated-by-postinstall') const generatedByPreinstall = project.requireModule('install-scripts-example-for-pnpm/generated-by-preinstall') t.ok(typeof generatedByPreinstall === 'function', 'generatedByPreinstall() is available')