Skip to content

Commit 330ce4e

Browse files
committed
fix: await promise passed to assert.ok function
1 parent c08e03b commit 330ce4e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

v-next/hardhat-utils/test/request.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -542,7 +542,7 @@ describe("Requests util", () => {
542542
mockPool.intercept(baseInterceptorOptions).reply(200, "file content");
543543
await download(url, destination, undefined, mockPool);
544544

545-
assert.ok(exists(destination), "Should create the file");
545+
assert.ok(await exists(destination), "Should create the file");
546546
assert.equal(await readUtf8File(destination), "file content");
547547
});
548548

0 commit comments

Comments
 (0)