Skip to content

Commit

Permalink
Should await t.exception()
Browse files Browse the repository at this point in the history
  • Loading branch information
kasperisager committed Nov 17, 2023
1 parent cccb0a1 commit 5ef6e0a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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({
Expand All @@ -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) => {
Expand Down

0 comments on commit 5ef6e0a

Please sign in to comment.