From 85e7427ab07dc3fc999204fcf1b544816793b2d8 Mon Sep 17 00:00:00 2001 From: Anton Date: Sun, 6 Apr 2025 16:13:09 +0200 Subject: [PATCH] docs: use better mocha function types --- docs/docs/test-runner/test-frameworks/mocha.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/docs/test-runner/test-frameworks/mocha.md b/docs/docs/test-runner/test-frameworks/mocha.md index f44663d70..3998e1cdc 100644 --- a/docs/docs/test-runner/test-frameworks/mocha.md +++ b/docs/docs/test-runner/test-frameworks/mocha.md @@ -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'); }