| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,6 +1,12 @@ | |||
| 1 | 1 | 'use strict'; | |
| 2 | 2 | require('../common'); | |
| 3 | 3 | const assert = require('assert'); | |
| 4 | + const debug = require('_debug_agent'); | ||
| 4 | 5 | ||
| 5 | - assert.throws(() => { require('_debug_agent').start(); }, | ||
| 6 | - assert.AssertionError); | ||
| 6 | + assert.throws( | ||
| 7 | + () => { debug.start(); }, | ||
| 8 | + function(err) { | ||
| 9 | + return (err instanceof assert.AssertionError && | ||
| 10 | + err.message === 'Debugger agent running without bindings!'); | ||
| 11 | + } | ||
| 12 | + ); | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments