GeezerVison is showing github.com — test: remove duplicate `common` imports · nodejs/node@9c7b282
File treeExpand 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: test/internet/test-dns-lookup.js -1Lines changed: 0 additions & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
| 1 | 1 | 'use strict'; | 2 | 2 |
| 3 | | -require('../common'); | 4 | 3 | const common = require('../common'); | 5 | 4 | const dns = require('dns'); | 6 | 5 | const dnsPromises = dns.promises; | |
Collapse file Copy file name to clipboardExpand all lines: test/parallel/test-dgram-listen-after-bind.js -1Lines changed: 0 additions & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
| 20 | 20 | // USE OR OTHER DEALINGS IN THE SOFTWARE. | 21 | 21 |
| 22 | 22 | 'use strict'; | 23 | | -require('../common'); | 24 | 23 | const common = require('../common'); | 25 | 24 | const assert = require('assert'); | 26 | 25 | const dgram = require('dgram'); | |
Collapse file Copy file name to clipboardExpand all lines: test/parallel/test-fs-read-empty-buffer.js -1Lines changed: 0 additions & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
| 1 | 1 | 'use strict'; | 2 | | -require('../common'); | 3 | 2 | const common = require('../common'); | 4 | 3 | const fixtures = require('../common/fixtures'); | 5 | 4 | const assert = require('assert'); | |
Collapse file Copy file name to clipboardExpand all lines: test/parallel/test-is-internal-thread.mjs +2-3Lines changed: 2 additions & 3 deletions | Original file line number | Diff line number | Diff line change |
|---|
| 1 | | -import { spawnPromisified } from '../common/index.mjs'; | | 1 | +import { mustCall, spawnPromisified } from '../common/index.mjs'; | 2 | 2 | import * as fixtures from '../common/fixtures.mjs'; | 3 | 3 | import assert from 'node:assert'; | 4 | 4 | import { execPath } from 'node:process'; | 5 | 5 | import { describe, it } from 'node:test'; | 6 | 6 | import { isInternalThread, Worker } from 'node:worker_threads'; | 7 | | -import * as common from '../common/index.mjs'; | 8 | 7 |
| 9 | 8 | describe('worker_threads.isInternalThread', { concurrency: !process.env.TEST_PARALLEL }, () => { | 10 | 9 | it('should be true inside the loader thread', async () => { | @@ -29,7 +28,7 @@ describe('worker_threads.isInternalThread', { concurrency: !process.env.TEST_PAR | 29 | 28 | it('should be false inside a regular worker thread', async () => { | 30 | 29 | const worker = new Worker(fixtures.path('worker-is-internal-thread.js')); | 31 | 30 |
| 32 | | - worker.on('message', common.mustCall((message) => { | | 31 | + worker.on('message', mustCall((message) => { | 33 | 32 | assert.strictEqual(message, 'isInternalThread: false'); | 34 | 33 | })); | 35 | 34 | }); | |
Collapse file Copy file name to clipboardExpand all lines: test/parallel/test-stream-readable-to-web-byob.js +1-2Lines changed: 1 addition & 2 deletions | Original file line number | Diff line number | Diff line change |
|---|
| 1 | 1 | 'use strict'; | 2 | | -require('../common'); | | 2 | +const common = require('../common'); | 3 | 3 | const { Readable } = require('stream'); | 4 | 4 | const assert = require('assert'); | 5 | | -const common = require('../common'); | 6 | 5 |
| 7 | 6 | let count = 0; | 8 | 7 |
| |
Collapse file Copy file name to clipboardExpand all lines: test/parallel/test-stream-readable-to-web-termination-byob.js +1-2Lines changed: 1 addition & 2 deletions | Original file line number | Diff line number | Diff line change |
|---|
| 1 | 1 | 'use strict'; | 2 | | -require('../common'); | | 2 | +const common = require('../common'); | 3 | 3 | const { Readable } = require('stream'); | 4 | 4 | const assert = require('assert'); | 5 | | -const common = require('../common'); | 6 | 5 | { | 7 | 6 | const r = Readable.from([]); | 8 | 7 | // Cancelling reader while closing should not cause uncaught exceptions | |
Collapse file Copy file name to clipboardExpand all lines: test/parallel/test-worker-message-mark-as-uncloneable.js +1-2Lines changed: 1 addition & 2 deletions | Original file line number | Diff line number | Diff line change |
|---|
| 1 | 1 | 'use strict'; | 2 | 2 |
| 3 | | -require('../common'); | | 3 | +const { mustCall } = require('../common'); | 4 | 4 | const assert = require('assert'); | 5 | 5 | const { markAsUncloneable } = require('node:worker_threads'); | 6 | | -const { mustCall } = require('../common'); | 7 | 6 |
| 8 | 7 | const expectedErrorName = 'DataCloneError'; | 9 | 8 |
| |
|