| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 8389a1e commit 25b76a4
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -4,5 +4,7 @@ const assert = require('assert'); | |||
| 4 | 4 | const dns = require('dns'); | |
| 5 | 5 | ||
| 6 | 6 | // Should not raise assertion error. Issue #7070 | |
| 7 | - assert.throws(() => dns.resolveNs([])); // bad name | ||
| 8 | - assert.throws(() => dns.resolveNs('')); // bad callback | ||
| 7 | + assert.throws(() => dns.resolveNs([]), // bad name | ||
| 8 | + /^Error: "name" argument must be a string$/); | ||
| 9 | + assert.throws(() => dns.resolveNs(''), // bad callback | ||
| 10 | + /^Error: "callback" argument must be a function$/); | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments