diff --git a/docs/docs/test-runner/writing-tests/html-tests.md b/docs/docs/test-runner/writing-tests/html-tests.md index 61c2bdfba..e4f5cd2a8 100644 --- a/docs/docs/test-runner/writing-tests/html-tests.md +++ b/docs/docs/test-runner/writing-tests/html-tests.md @@ -13,8 +13,8 @@ With mocha, you need to define your tests inside the `runTests` function: runTests(async () => { // write your tests inline - describe('HTML tests', () => { - it('works', () => { + describe('HTML tests', function () { + it('works', async function () { expect('foo').to.equal('foo'); }); });