| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent cfea677 commit fe8297c
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -0,0 +1,12 @@ | |||
| 1 | + 'use strict'; | ||
| 2 | + | ||
| 3 | + const common = require('../common'); | ||
| 4 | + const util = require('util'); | ||
| 5 | + | ||
| 6 | + [1, true, false, null, {}].forEach((notString) => { | ||
| 7 | + common.expectsError(() => util.deprecate(() => {}, 'message', notString), { | ||
| 8 | + code: 'ERR_INVALID_ARG_TYPE', | ||
| 9 | + type: TypeError, | ||
| 10 | + message: 'The "code" argument must be of type string' | ||
| 11 | + }); | ||
| 12 | + }); | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments