test(rebuild): await for async asserts

This commit is contained in:
Zoltan Kochan
2017-10-04 01:22:08 +03:00
parent 047bfcbd6e
commit 640994f616

View File

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