Skip to content

Commit

Permalink
complete test
Browse files Browse the repository at this point in the history
  • Loading branch information
jsumners-nr committed Apr 25, 2024
1 parent e33c410 commit 1209698
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions test/integration/issue-2155/test.tap.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ function instrumentation(shim, resolvedModule) {
const value = _name.call(foo)
return `wrapped: ${value}`
}
return foo
}
})
}
Expand All @@ -53,8 +54,8 @@ tap.afterEach((t) => {
helper.unloadAgent(t.context.agent)
})

tap.test('blah', async (t) => {
tap.test('CJS imported as ESM gets wrapped correctly', async (t) => {
const { mod } = t.context
mod()
t.pass()
const instance = mod()
t.equal(instance.name(), 'wrapped: foo')
})

0 comments on commit 1209698

Please sign in to comment.