diff --git a/doc/api/test.md b/doc/api/test.md index a23c4064196aaf..a9ee291d2c4aa0 100644 --- a/doc/api/test.md +++ b/doc/api/test.md @@ -606,7 +606,7 @@ test('mocks setTimeout to be executed synchronously without having to actually w }); ``` -```js +```cjs const assert = require('node:assert'); const { mock, test } = require('node:test'); @@ -625,7 +625,7 @@ test('mocks setTimeout to be executed synchronously without having to actually w // Reset the globally tracked mocks. mock.timers.reset(); - // If you call reset mock instance, it'll also reset timers instance + // If you call reset mock instance, it will also reset timers instance mock.reset(); }); ``` @@ -653,7 +653,7 @@ test('mocks setTimeout to be executed synchronously without having to actually w }); ``` -```js +```cjs const assert = require('node:assert'); const { test } = require('node:test');