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
Next Next commit
test: checking if error constructor is assert.AssertionError
  • Loading branch information
larissayvette committed Oct 12, 2016
commit 2f66d7acaea10c909cda70579dc9152479720373
10 changes: 8 additions & 2 deletions test/parallel/test-debug-agent.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
'use strict';
require('../common');
const assert = require('assert');
const debug = require('_debug_agent');

assert.throws(() => { require('_debug_agent').start(); },
assert.AssertionError);
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) {
return (err instanceof assert.AssertionError);
},
'Unexpected Error'
);