Skip to content

Commit

Permalink
test: lint errors fixed in test cases
Browse files Browse the repository at this point in the history
PR-URL: #40351
Fixes: #39804
  • Loading branch information
git-srinivas committed Oct 13, 2021
1 parent 5fa492a commit 37ab7b0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion test/parallel/test-blob.js
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ assert.throws(() => new Blob({}), {
}

{
const b = new Blob(['hello', new Uint8Array([0xed,0xa0,0x88])]);
const b = new Blob(['hello', new Uint8Array([0xed, 0xa0, 0x88])]);
assert.strictEqual(b.size, 8);
b.text().then(common.mustCall((text) => {
assert.strictEqual(text, 'hello\ufffd\ufffd\ufffd');
Expand Down
4 changes: 2 additions & 2 deletions test/parallel/test-whatwg-encoding-custom-textdecoder.js
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ if (common.hasIntl) {
// Test TextDecoder for surrogate code points
{
const decoder = new TextDecoder();
const chunk = Buffer.from([0x66, 0x6f, 0x6f, 0xed, 0xa0, 0x80]); // foo + U+D800
const chunk = Buffer.from([0x66, 0x6f, 0x6f, 0xed, 0xa0, 0x80]);
const str = decoder.decode(chunk);
assert.strictEqual(str, 'foo\ufffd\ufffd\ufffd');
}
Expand All @@ -205,4 +205,4 @@ if (common.hasIntl) {
const chunk = Buffer.from('\ud807');
const str = decoder.decode(chunk);
assert.strictEqual(str, '\ufffd');
}
}

0 comments on commit 37ab7b0

Please sign in to comment.