Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions docs/docs/test-runner/test-frameworks/mocha.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ Test framework implementation of [Mocha](https://mochajs.org/).
Mocha relies on global variables, in any JS test file `describe` and `it` are available globally and can be used directly:

```js
describe('my test', () => {
it('foo is bar', () => {
describe('my test', function () {
it('foo is bar', async function () {
if ('foo' !== 'bar') {
throw new Error('foo does not equal bar');
}
Expand Down