Skip to content

Commit ab4486b

Browse files
committed
fixup! lint issues
1 parent b236cd4 commit ab4486b

File tree

2 files changed

+20
-20
lines changed

2 files changed

+20
-20
lines changed

test/parallel/test-buffer-compare.js

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -54,57 +54,57 @@ common.expectsError(() => Buffer.alloc(1).compare('abc'), {
5454

5555
assert.strictEqual(a.compare(b), -1);
5656

57-
// Equivalent to a.compare(b).
57+
// Equivalent to a.compare(b).
5858
assert.strictEqual(a.compare(b, 0), -1);
5959
// No longer valid
6060
// Refs: https://github.com/nodejs/node/issues/23668
61-
//assert.strictEqual(a.compare(b, '0'), -1);
61+
// assert.strictEqual(a.compare(b, '0'), -1);
6262
assert.strictEqual(a.compare(b, undefined), -1);
6363

64-
// Equivalent to a.compare(b).
64+
// Equivalent to a.compare(b).
6565
assert.strictEqual(a.compare(b, 0, undefined, 0), -1);
6666

67-
// Zero-length target, return 1
67+
// Zero-length target, return 1
6868
assert.strictEqual(a.compare(b, 0, 0, 0), 1);
6969
// No longer valid
7070
// Refs: https://github.com/nodejs/node/issues/23668
7171
// assert.strictEqual(a.compare(b, '0', '0', '0'), 1);
7272

73-
// Equivalent to Buffer.compare(a, b.slice(6, 10))
73+
// Equivalent to Buffer.compare(a, b.slice(6, 10))
7474
assert.strictEqual(a.compare(b, 6, 10), 1);
7575

76-
// Zero-length source, return -1
76+
// Zero-length source, return -1
7777
assert.strictEqual(a.compare(b, 6, 10, 0, 0), -1);
7878

79-
// Zero-length source and target, return 0
79+
// Zero-length source and target, return 0
8080
assert.strictEqual(a.compare(b, 0, 0, 0, 0), 0);
8181
assert.strictEqual(a.compare(b, 1, 1, 2, 2), 0);
8282

83-
// Equivalent to Buffer.compare(a.slice(4), b.slice(0, 5))
83+
// Equivalent to Buffer.compare(a.slice(4), b.slice(0, 5))
8484
assert.strictEqual(a.compare(b, 0, 5, 4), 1);
8585

86-
// Equivalent to Buffer.compare(a.slice(1), b.slice(5))
86+
// Equivalent to Buffer.compare(a.slice(1), b.slice(5))
8787
assert.strictEqual(a.compare(b, 5, undefined, 1), 1);
8888

89-
// Equivalent to Buffer.compare(a.slice(2), b.slice(2, 4))
89+
// Equivalent to Buffer.compare(a.slice(2), b.slice(2, 4))
9090
assert.strictEqual(a.compare(b, 2, 4, 2), -1);
9191

92-
// Equivalent to Buffer.compare(a.slice(4), b.slice(0, 7))
92+
// Equivalent to Buffer.compare(a.slice(4), b.slice(0, 7))
9393
assert.strictEqual(a.compare(b, 0, 7, 4), -1);
9494

95-
// Equivalent to Buffer.compare(a.slice(4, 6), b.slice(0, 7));
95+
// Equivalent to Buffer.compare(a.slice(4, 6), b.slice(0, 7));
9696
assert.strictEqual(a.compare(b, 0, 7, 4, 6), -1);
9797

98-
// zero length target
98+
// zero length target
9999
assert.strictEqual(a.compare(b, 0, null), 1);
100100

101-
// coerces to targetEnd == 5
101+
// coerces to targetEnd == 5
102102
assert.strictEqual(a.compare(b, 0, { valueOf: () => 5 }), -1);
103103

104-
// zero length target
104+
// zero length target
105105
assert.strictEqual(a.compare(b, Infinity, -Infinity), 1);
106106

107-
// zero length target because default for targetEnd <= targetSource
107+
// zero length target because default for targetEnd <= targetSource
108108
// No longer valid
109109
// Refs: https://github.com/nodejs/node/issues/23668
110110
// assert.strictEqual(a.compare(b, '0xff'), 1);
@@ -135,7 +135,7 @@ common.expectsError(() => Buffer.alloc(1).compare('abc'), {
135135
const expected = {
136136
code: 'ERR_INVALID_ARG_TYPE',
137137
type: TypeError,
138-
}
138+
};
139139

140140
common.expectsError(
141141
() => b.compare(c, '1'),
@@ -161,7 +161,7 @@ common.expectsError(() => Buffer.alloc(1).compare('abc'), {
161161
const expected = {
162162
code: 'ERR_OUT_OF_RANGE',
163163
type: RangeError,
164-
}
164+
};
165165
common.expectsError(
166166
() => b.copy(c, -1),
167167
expected

test/parallel/test-buffer-copy.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ assert.strictEqual(b.copy(c, 512, 0, 10), 0);
160160
const expected = {
161161
code: 'ERR_INVALID_ARG_TYPE',
162162
type: TypeError,
163-
}
163+
};
164164

165165
common.expectsError(
166166
() => b.copy(c, '1'),
@@ -182,7 +182,7 @@ assert.strictEqual(b.copy(c, 512, 0, 10), 0);
182182
const expected = {
183183
code: 'ERR_OUT_OF_RANGE',
184184
type: RangeError,
185-
}
185+
};
186186

187187
common.expectsError(
188188
() => b.copy(c, -1),

0 commit comments

Comments
 (0)