GeezerVison is showing github.com — doc: fix test runner examples · nodejs/node@6126830
File tree
Expand file treeCollapse file tree
Open diff view settings
Expand file treeCollapse file tree
Open diff view settings
Collapse file
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 number | Diff line number | Diff line change |
|---|
@@ -921,7 +921,7 @@ before each subtest of the current suite. |
921 | 921 |
|
922 | 922 | ```js |
923 | 923 | describe('tests', async () => { |
924 | | - beforeEach(() => t.diagnostic('about to run a test')); |
| 924 | + beforeEach(() => console.log('about to run a test')); |
925 | 925 | it('is a subtest', () => { |
926 | 926 | assert.ok('some relevant assertion here'); |
927 | 927 | }); |
@@ -950,7 +950,7 @@ after each subtest of the current test. |
950 | 950 |
|
951 | 951 | ```js |
952 | 952 | describe('tests', async () => { |
953 | | - afterEach(() => t.diagnostic('about to run a test')); |
| 953 | + afterEach(() => console.log('finished running a test')); |
954 | 954 | it('is a subtest', () => { |
955 | 955 | assert.ok('some relevant assertion here'); |
956 | 956 | }); |
|