Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
squash: lint fix
  • Loading branch information
Trott committed Nov 8, 2017
commit 2b1ad0aa44cb362455d7e14f3cb9a8d5dbfba64b
2 changes: 1 addition & 1 deletion test/addons-napi/test_general/testNapiRun.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@ const expected = 42;
const actual = addon.testNapiRun(testCase);

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This could be then rewritten as:

const actual = addon.testNapiRun(`(${val1} + ${val2});`);


assert.strictEqual(actual, expected);
assert.throws(() => addon.testNapiRun({abc: 'def'}), /string was expected/);
assert.throws(() => addon.testNapiRun({ abc: 'def' }), /string was expected/);