From 5ef6e0a4dc00e3ce2b1266427f8b51c8d601b9c8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kasper=20Isager=20Dalsgar=C3=B0?= Date: Fri, 17 Nov 2023 09:14:56 +0100 Subject: [PATCH] Should await `t.exception()` --- test.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test.js b/test.js index cf570d3..8c25ca8 100644 --- a/test.js +++ b/test.js @@ -1187,7 +1187,7 @@ test('exports in node_modules', (t) => { t.is(Module.resolve('foo', '/', { protocol }), '/node_modules/foo/foo.js') }) -test('import unexported module in node_modules', (t) => { +test('import unexported module in node_modules', async (t) => { t.teardown(onteardown) const protocol = new Module.Protocol({ @@ -1208,7 +1208,7 @@ test('import unexported module in node_modules', (t) => { } }) - t.exception(() => Module.resolve('foo/bar', '/', { protocol })) + await t.exception(() => Module.resolve('foo/bar', '/', { protocol })) }) test('imports in package.json', (t) => {