Skip to content

Commit

Permalink
don't use 't' variable
Browse files Browse the repository at this point in the history
  • Loading branch information
koshic committed Oct 14, 2023
1 parent 92a1d70 commit 0f162ca
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/tests-node/esmock.node.resolver-pnp.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@ test.beforeEach(() => {
delete pnpapi.resolveRequest
})

test('should work with pnp resolver', async t => {
test('should work with pnp resolver', async ({ mock }) => {
if (!module.register)
return assert.ok('skip test')

pnpapi.resolveRequest = t.mock.fn(resolver)
pnpapi.resolveRequest = mock.fn(resolver)

const main = await esmock('../local/main.js', {
'../local/mainUtil.js': {
Expand Down

0 comments on commit 0f162ca

Please sign in to comment.