summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--test/addons-napi/test_typedarray/test.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/test/addons-napi/test_typedarray/test.js b/test/addons-napi/test_typedarray/test.js
index 25f701f2d3..27ef054fe4 100644
--- a/test/addons-napi/test_typedarray/test.js
+++ b/test/addons-napi/test_typedarray/test.js
@@ -49,7 +49,9 @@ arrayTypes.forEach((currentType) => {
const theArray = test_typedarray.CreateTypedArray(template, buffer);
assert.ok(theArray instanceof currentType,
- 'Type of new array should match that of the template');
+ 'Type of new array should match that of the template. ' +
+ `Expected type: ${currentType.name}, ` +
+ `actual type: ${template.constructor.name}`);
assert.notStrictEqual(theArray, template);
assert.strictEqual(theArray.buffer, buffer);
});