diff --git a/test/addons-napi/test_typedarray/test.js b/test/addons-napi/test_typedarray/test.js index 25f701f2d30c70..27ef054fe4635e 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); });