(f, ...args)
| 302 | checksAllArguments(x => check(x, Number), NaN); |
| 303 | |
| 304 | const doesntCheckAllArguments = (f, ...args) => { |
| 305 | try { |
| 306 | Match._failIfArgumentsAreNotAllChecked(f, {}, args, 'test'); |
| 307 | test.fail({message: 'expected _failIfArgumentsAreNotAllChecked to throw'}); |
| 308 | } catch (e) { |
| 309 | test.equal(e.message, 'Did not check() all arguments during test'); |
| 310 | } |
| 311 | }; |
| 312 | |
| 313 | doesntCheckAllArguments(() => {}, undefined); |
| 314 | doesntCheckAllArguments(() => {}, null); |
no test coverage detected
searching dependent graphs…