Skip to content

Commit

Permalink
Add additional function call
Browse files Browse the repository at this point in the history
  • Loading branch information
bosschaert committed May 1, 2024
1 parent 8d60c2d commit dbf0a17
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion tests/local/bossch.fnimported.js
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
export const fnimported = () => 'un-mocked'
export const fnother = () => 'un-mocked'

export const fnimported = () => fnother()
2 changes: 1 addition & 1 deletion tests/tests-node/esmock.node.bossch.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import esmock from 'esmock'
test('should mock importedfn', async () => {
const { fncaller } = await esmock('../local/bossch.fnimporter.js', {
'../local/bossch.fnimported.js': {
fnimported: () => 'mocky'
fnother: () => 'mocky'
}
})

Expand Down

0 comments on commit dbf0a17

Please sign in to comment.