(binding)
| 19 | } |
| 20 | |
| 21 | function test (binding) { |
| 22 | canThrow(binding, '404 server not found!', 'string'); |
| 23 | canThrow(binding, 42, 'number'); |
| 24 | canThrow(binding, Symbol.for('newSym'), 'symbol'); |
| 25 | canThrow(binding, false, 'boolean'); |
| 26 | canThrow(binding, BigInt(123), 'bigint'); |
| 27 | canThrow(binding, () => { console.log('Logger shutdown incorrectly'); }, 'function'); |
| 28 | canThrow(binding, { status: 403, errorMsg: 'Not authenticated' }, 'object'); |
| 29 | } |
no test coverage detected