Skip to content

Commit b18058f

Browse files
authored
docs: use better mocha function types
1 parent dbd418f commit b18058f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/docs/test-runner/writing-tests/html-tests.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ With mocha, you need to define your tests inside the `runTests` function:
1313
1414
runTests(async () => {
1515
// write your tests inline
16-
describe('HTML tests', () => {
17-
it('works', () => {
16+
describe('HTML tests', function () {
17+
it('works', async function () {
1818
expect('foo').to.equal('foo');
1919
});
2020
});

0 commit comments

Comments
 (0)