diff --git a/README.md b/README.md index 18f0c711..7a1834b9 100644 --- a/README.md +++ b/README.md @@ -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'