Skip to content

Commit 37ab7b0

Browse files
committed
test: lint errors fixed in test cases
PR-URL: nodejs#40351 Fixes: nodejs#39804
1 parent 5fa492a commit 37ab7b0

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

test/parallel/test-blob.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ assert.throws(() => new Blob({}), {
8888
}
8989

9090
{
91-
const b = new Blob(['hello', new Uint8Array([0xed,0xa0,0x88])]);
91+
const b = new Blob(['hello', new Uint8Array([0xed, 0xa0, 0x88])]);
9292
assert.strictEqual(b.size, 8);
9393
b.text().then(common.mustCall((text) => {
9494
assert.strictEqual(text, 'hello\ufffd\ufffd\ufffd');

test/parallel/test-whatwg-encoding-custom-textdecoder.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ if (common.hasIntl) {
195195
// Test TextDecoder for surrogate code points
196196
{
197197
const decoder = new TextDecoder();
198-
const chunk = Buffer.from([0x66, 0x6f, 0x6f, 0xed, 0xa0, 0x80]); // foo + U+D800
198+
const chunk = Buffer.from([0x66, 0x6f, 0x6f, 0xed, 0xa0, 0x80]);
199199
const str = decoder.decode(chunk);
200200
assert.strictEqual(str, 'foo\ufffd\ufffd\ufffd');
201201
}
@@ -205,4 +205,4 @@ if (common.hasIntl) {
205205
const chunk = Buffer.from('\ud807');
206206
const str = decoder.decode(chunk);
207207
assert.strictEqual(str, '\ufffd');
208-
}
208+
}

0 commit comments

Comments
 (0)