mirror of
https://github.com/nodejs/node.git
synced 2026-11-25 23:01:06 -05:00
doc: fix test runner examples
PR-URL: https://github.com/nodejs/node/pull/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>
This commit is contained in:
1 parent
ff95eb7386
commit
c771d66864
1 file changed
+2
-2
+2
-2
@@ -912,7 +912,7 @@ before each subtest of the current suite.
|
||||
|
||||
```js
|
||||
describe('tests', async () => {
|
||||
beforeEach(() => t.diagnostic('about to run a test'));
|
||||
beforeEach(() => console.log('about to run a test'));
|
||||
it('is a subtest', () => {
|
||||
assert.ok('some relevant assertion here');
|
||||
});
|
||||
@@ -943,7 +943,7 @@ after each subtest of the current test.
|
||||
|
||||
```js
|
||||
describe('tests', async () => {
|
||||
afterEach(() => t.diagnostic('about to run a test'));
|
||||
afterEach(() => console.log('finished running a test'));
|
||||
it('is a subtest', () => {
|
||||
assert.ok('some relevant assertion here');
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user