8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2b0410a commit 9af7ad5Copy full SHA for 9af7ad5
test/async-hooks/init-hooks.js
@@ -120,8 +120,7 @@ class ActivityCollector {
120
}
121
if (violations.length) {
122
console.error(violations.join('\n\n') + '\n');
123
- assert.fail(violations.length, 0,
124
- `${violations.length} failed sanity checks`);
+ assert.fail(`${violations.length} failed sanity checks`);
125
126
127
test/parallel/test-net-connect-options-fd.js
@@ -70,7 +70,7 @@ const forAllClients = (cb) => common.mustCall(cb, CLIENT_VARIANTS);
70
})
71
.on('error', function(err) {
72
console.error(err);
73
- assert.fail(null, null, `[Pipe server]${err}`);
+ assert.fail(`[Pipe server]${err}`);
74
75
.listen({ path: serverPath }, common.mustCall(function serverOnListen() {
76
const getSocketOpt = (index) => {
@@ -94,7 +94,7 @@ const forAllClients = (cb) => common.mustCall(cb, CLIENT_VARIANTS);
94
console.error(`[Pipe]Sending data through fd ${oldHandle.fd}`);
95
this.on('error', function(err) {
96
97
- assert.fail(null, null, `[Pipe Client]${err}`);
+ assert.fail(`[Pipe Client]${err}`);
98
});
99
100
test/parallel/test-string-decoder.js
@@ -228,7 +228,7 @@ function test(encoding, input, expected, singleSequence) {
228
`input: ${input.toString('hex').match(hexNumberRE)}\n` +
229
`Write sequence: ${JSON.stringify(sequence)}\n` +
230
`Full Decoder State: ${inspect(decoder)}`;
231
- assert.fail(output, expected, message);
+ assert.fail(message);
232
233
234
test/pseudo-tty/test-tty-get-color-depth.js
@@ -2,7 +2,6 @@
2
3
const common = require('../common');
4
const assert = require('assert').strict;
5
-/* eslint-disable no-restricted-properties */
6
const { WriteStream } = require('tty');
7
8
const fd = common.getTTYfd();