Skip to content

Commit f131a8c

Browse files
richiemccolljuliangruber
authored andcommitted
doc: fix test runner examples
PR-URL: nodejs/node#46565 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Moshe Atlow <moshe@atlow.co.il> Reviewed-By: Paolo Insogna <paolo@cowtech.it> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com> (cherry picked from commit be4921474671fb15f0e62adfe2f37253d07eca02)
1 parent 414743a commit f131a8c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -801,7 +801,7 @@ before each subtest of the current suite.
801801

802802
```js
803803
describe('tests', async () => {
804-
beforeEach(() => t.diagnostics('about to run a test'));
804+
beforeEach(() => console.log('about to run a test'));
805805
it('is a subtest', () => {
806806
assert.ok('some relevant assertion here');
807807
});
@@ -826,7 +826,7 @@ after each subtest of the current test.
826826

827827
```js
828828
describe('tests', async () => {
829-
afterEach(() => t.diagnostics('about to run a test'));
829+
afterEach(() => console.log('about to run a test'));
830830
it('is a subtest', () => {
831831
assert.ok('some relevant assertion here');
832832
});

0 commit comments

Comments
 (0)