Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit d2b32ce

Browse filesBrowse files
Attila Gondagibfahn
authored andcommitted
test: add detailed message for assertion failure
PR-URL: #16812 Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com> Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
1 parent 55bf57d commit d2b32ce
Copy full SHA for d2b32ce

File tree

Expand file treeCollapse file tree

1 file changed

+3
-1
lines changed
Open diff view settings
Filter options
  • test/addons-napi/test_typedarray
Expand file treeCollapse file tree

1 file changed

+3
-1
lines changed
Open diff view settings
Collapse file

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

Copy file name to clipboardExpand all lines: test/addons-napi/test_typedarray/test.js
+3-1Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,9 @@ arrayTypes.forEach((currentType) => {
4949
const theArray = test_typedarray.CreateTypedArray(template, buffer);
5050

5151
assert.ok(theArray instanceof currentType,
52-
'Type of new array should match that of the template');
52+
'Type of new array should match that of the template. ' +
53+
`Expected type: ${currentType.name}, ` +
54+
`actual type: ${template.constructor.name}`);
5355
assert.notStrictEqual(theArray, template);
5456
assert.strictEqual(theArray.buffer, buffer);
5557
});

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.