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
test/addons-napi/test_buffer
Expand file treeCollapse file tree
Open diff view settings
Collapse file
Copy file name to clipboardExpand all lines: test/addons-napi/test_buffer/test.js +3-4Lines changed: 3 additions & 4 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -9,14 +9,13 @@ assert.strictEqual(binding.newBuffer().toString(), binding.theText); |
9 | 9 | assert.strictEqual(binding.newExternalBuffer().toString(), binding.theText); |
10 | 10 | console.log('gc1'); |
11 | 11 | global.gc(); |
12 | | -assert.strictEqual(binding.getDeleterCallCount(), 1, 'deleter was not called'); |
| 12 | +assert.strictEqual(binding.getDeleterCallCount(), 1); |
13 | 13 | assert.strictEqual(binding.copyBuffer().toString(), binding.theText); |
14 | 14 |
|
15 | 15 | let buffer = binding.staticBuffer(); |
16 | | -assert.strictEqual(binding.bufferHasInstance(buffer), true, |
17 | | - 'buffer type checking fails'); |
| 16 | +assert.strictEqual(binding.bufferHasInstance(buffer), true); |
18 | 17 | assert.strictEqual(binding.bufferInfo(buffer), true); |
19 | 18 | buffer = null; |
20 | 19 | global.gc(); |
21 | 20 | console.log('gc2'); |
22 | | -assert.strictEqual(binding.getDeleterCallCount(), 2, 'deleter was not called'); |
| 21 | +assert.strictEqual(binding.getDeleterCallCount(), 2); |