Skip to content

Commit

Permalink
Fix typo, reword stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
StephanHoyer committed Dec 26, 2021
1 parent eae4d29 commit facf7ce
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@ Query mithril virtual dom for testing purposes

## Setup

In order to run tests in mithril 2.x we need to do some setup, to mock the dom for the renderer.
Mithril query will try to do this mocking for you, if it can't find the required globals, but this
might not work properly due to module loading order. If you load mithril-query befor everything else
In order to run tests in mithril 2.x we need to do some dom-mocking for the renderer.
`mithril-query` will try to do this mocking for you, if it can't find the required globals, but this
might not work properly due to module loading order. If you load mithril-query before everything else
it should work as expected.

In any other case, this can be done manually by calling the `ensureglobals` helper upfront (e. G. by adding if into a 'setup' file in your 'mocha' tests).
In any other case, this can be done manually by calling the `ensureGlobals` helper upfront (e. G. by adding if into a 'setup' file in your 'mocha' tests).

```js
require('mithril-query').ensureGlobals()
Expand Down

0 comments on commit facf7ce

Please sign in to comment.