Skip to content

Commit

Permalink
update README
Browse files Browse the repository at this point in the history
  • Loading branch information
bumblehead committed Sep 5, 2022
1 parent dbc6980 commit ea6b295
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ test('should support "strict" mocking, at esmock.strict', async () => {
path: { dirname: () => '/path/to/file' }
})

// an error, because the path mock did not define path.basename
// error, because the "path" mock above does not define path.basename
await assert.rejects(async () => pathWrapper.basename('/dog.png'), {
name: 'TypeError',
message: 'path.basename is not a function'
Expand Down

0 comments on commit ea6b295

Please sign in to comment.