mirror of
https://github.com/nodejs/node.git
synced 2026-11-09 15:11:11 -05:00
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>
14 lines
287 B
JavaScript
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!'
|
|
)
|
|
);
|