Skip to content

Commit

Permalink
Merge pull request #275 from iambumblehead/update-readme-to-work-with…
Browse files Browse the repository at this point in the history
…-markdown-lint-plugin

update README to work with markdown lint plugin
  • Loading branch information
iambumblehead authored Nov 13, 2023
2 parents 5a0c015 + 8bb1a68 commit 88a7216
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# changelog

* 2.6.1 _???.??.2023_
* [update README to work w/ eslint-plugin-markdown](https://github.com/iambumblehead/esmock/pull/275)
* 2.6.0 _Nov.07.2023_
* [typings: make MockFunction generic,](https://github.com/iambumblehead/esmock/pull/267) thanks @uwinkelvos
* 2.5.9 _Nov.01.2023_
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,15 @@
_**Note: For versions of node prior to v20.6.0,** "--loader" command line arguments must be used with `esmock` as demonstrated [in the wiki.][4] Current versions of node do not require "--loader"._

`esmock` has the below signature
``` javascript
```js
await esmock(
'./to/module.js', // path to target module being tested
{ ...childmocks }, // mock definitions imported by target module
{ ...globalmocks }) // mock definitions imported everywhere
```

`esmock` examples
``` javascript
```js
import test from 'node:test'
import assert from 'node:assert'
import esmock from 'esmock'
Expand Down

0 comments on commit 88a7216

Please sign in to comment.