Skip to content

Commit bac2aff

Browse files
mattcangibfahn
authored andcommitted
test: include actual value in assertion message
PR-URL: #15935 Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com> Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
1 parent c8a3b2d commit bac2aff

File tree

1 file changed

+1
-1
lines changed
  • test/addons-napi/test_dataview

1 file changed

+1
-1
lines changed

test/addons-napi/test_dataview/test.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,4 @@ const template = Reflect.construct(DataView, [buffer]);
1111

1212
const theDataview = test_dataview.CreateDataView(template);
1313
assert.ok(theDataview instanceof DataView,
14-
'The new variable should be of type Dataview');
14+
`Expect ${theDataview} to be a DataView`);

0 commit comments

Comments
 (0)