| 1 |
var test = require('test'); |
| 2 |
try { |
| 3 |
require('bogus'); |
| 4 |
test.print('FAIL require throws error when module missing', 'fail'); |
| 5 |
} catch (exception) { |
| 6 |
test.print('PASS require throws error when module missing', 'pass'); |
| 7 |
} |
| 8 |
test.print('DONE', 'info'); |