GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — doc: fix test runner examples · nodejs/node@6126830

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • doc/api
    • test.md
Expand file treeCollapse file tree
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
@@ -921,7 +921,7 @@ before each subtest of the current suite.
921921

922922
```js
923923
describe('tests', async () => {
924-
beforeEach(() => t.diagnostic('about to run a test'));
924+
beforeEach(() => console.log('about to run a test'));
925925
it('is a subtest', () => {
926926
assert.ok('some relevant assertion here');
927927
});
@@ -950,7 +950,7 @@ after each subtest of the current test.
950950

951951
```js
952952
describe('tests', async () => {
953-
afterEach(() => t.diagnostic('about to run a test'));
953+
afterEach(() => console.log('finished running a test'));
954954
it('is a subtest', () => {
955955
assert.ok('some relevant assertion here');
956956
});

0 commit comments

Comments
0 (0)
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.