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
Next Next commit
test: checking whether error constructor is assert.AssertionError
  • Loading branch information
larissayvette committed Oct 15, 2016
commit ee29c7a65c050e76543a875ef25adfa1d6462e0a
5 changes: 2 additions & 3 deletions test/parallel/test-debug-agent.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@ const debug = require('_debug_agent');
assert.throws(
() => { debug.start();},
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.

Can you use consistent spacing around the curly braces.

function(err) {
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.

The indentation looks off here.

if ((err instanceof assert.AssertionError) && /value/.test(err)) {
return true;
}
return (err instanceof assert.AssertionError &&
err.message === 'Debugger agent running without bindings!');
}
);