GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — test: remove the third string literal argument from assert.strictEqual() · nodejs/node@9cef72d

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • test/parallel
    • test-string-decoder-end.js
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎test/parallel/test-string-decoder-end.js‎

Copy file name to clipboardExpand all lines: test/parallel/test-string-decoder-end.js
+4-2Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,8 +103,10 @@ function testBuf(encoding, buf) {
103103
// .toString() on the buffer
104104
const res3 = buf.toString(encoding);
105105

106-
assert.strictEqual(res1, res3, 'one byte at a time should match toString');
107-
assert.strictEqual(res2, res3, 'all bytes at once should match toString');
106+
// One byte at a time should match toString
107+
assert.strictEqual(res1, res3);
108+
// All bytes at once should match toString
109+
assert.strictEqual(res2, res3);
108110
}
109111

110112
function testEnd(encoding, incomplete, next, expected) {

0 commit comments

Comments
0 (0)
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.