Files
node/test/parallel/test-debug-agent.js
T
Arseniy Maximov ca37ec084a test: use expectsError in test-debug-agent.js
Use common.expectsError() in place of inline validation function in
test-debug-agent.js.

PR-URL: https://github.com/nodejs/node/pull/11410
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Michaël Zasso <targos@protonmail.com>
2017-02-18 16:18:57 +01:00

14 lines
287 B
JavaScript

'use strict';
const common = require('../common');
const assert = require('assert');
const debug = require('_debug_agent');
assert.throws(
() => { debug.start(); },
common.expectsError(
undefined,
assert.AssertionError,
'Debugger agent running without bindings!'
)
);