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 literals that obscure assert messages · nodejs/node@2e100c8

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • test/addons-napi/test_buffer
    • test.js
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎test/addons-napi/test_buffer/test.js‎

Copy file name to clipboardExpand all lines: test/addons-napi/test_buffer/test.js
+3-4Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,13 @@ assert.strictEqual(binding.newBuffer().toString(), binding.theText);
99
assert.strictEqual(binding.newExternalBuffer().toString(), binding.theText);
1010
console.log('gc1');
1111
global.gc();
12-
assert.strictEqual(binding.getDeleterCallCount(), 1, 'deleter was not called');
12+
assert.strictEqual(binding.getDeleterCallCount(), 1);
1313
assert.strictEqual(binding.copyBuffer().toString(), binding.theText);
1414

1515
let buffer = binding.staticBuffer();
16-
assert.strictEqual(binding.bufferHasInstance(buffer), true,
17-
'buffer type checking fails');
16+
assert.strictEqual(binding.bufferHasInstance(buffer), true);
1817
assert.strictEqual(binding.bufferInfo(buffer), true);
1918
buffer = null;
2019
global.gc();
2120
console.log('gc2');
22-
assert.strictEqual(binding.getDeleterCallCount(), 2, 'deleter was not called');
21+
assert.strictEqual(binding.getDeleterCallCount(), 2);

0 commit comments

Comments
0 (0)
You are visitor 01402503 — 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.