From 087d213f6708194b12e4fb5118ff4da8b615bdaf Mon Sep 17 00:00:00 2001 From: Matthew Cantelon Date: Fri, 6 Oct 2017 17:26:16 +0000 Subject: [PATCH] test: include actual value in assertion message Backport-PR-URL: https://github.com/nodejs/node/pull/19447 PR-URL: https://github.com/nodejs/node/pull/15935 Reviewed-By: Luigi Pinca Reviewed-By: James M Snell Reviewed-By: Colin Ihrig Reviewed-By: Joyee Cheung Reviewed-By: Gireesh Punathil --- test/addons-napi/test_dataview/test.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/addons-napi/test_dataview/test.js b/test/addons-napi/test_dataview/test.js index 87cf8159ab8635..711ab01ddb3cb6 100644 --- a/test/addons-napi/test_dataview/test.js +++ b/test/addons-napi/test_dataview/test.js @@ -11,4 +11,4 @@ const template = Reflect.construct(DataView, [buffer]); const theDataview = test_dataview.CreateDataView(template); assert.ok(theDataview instanceof DataView, - 'The new variable should be of type Dataview'); + `Expect ${theDataview} to be a DataView`);