Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit c771d66

Browse filesBrowse files
richiemccollMylesBorins
authored andcommitted
doc: fix test runner examples
PR-URL: #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>
1 parent ff95eb7 commit c771d66
Copy full SHA for c771d66

File tree

Expand file treeCollapse file tree

1 file changed

+2
-2
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+2
-2
lines changed
Open diff view settings
Collapse file

‎doc/api/test.md‎

Copy file name to clipboardExpand all lines: doc/api/test.md
+2-2Lines changed: 2 additions & 2 deletions
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -912,7 +912,7 @@ before each subtest of the current suite.
912912

913913
```js
914914
describe('tests', async () => {
915-
beforeEach(() => t.diagnostic('about to run a test'));
915+
beforeEach(() => console.log('about to run a test'));
916916
it('is a subtest', () => {
917917
assert.ok('some relevant assertion here');
918918
});
@@ -943,7 +943,7 @@ after each subtest of the current test.
943943

944944
```js
945945
describe('tests', async () => {
946-
afterEach(() => t.diagnostic('about to run a test'));
946+
afterEach(() => console.log('finished running a test'));
947947
it('is a subtest', () => {
948948
assert.ok('some relevant assertion here');
949949
});

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.