mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-11-14 13:54:50 +00:00
20 lines
356 B
JavaScript
20 lines
356 B
JavaScript
/*\
|
|
title: missing/program.js
|
|
type: application/javascript
|
|
module-type: library
|
|
|
|
Missing test
|
|
|
|
\*/
|
|
|
|
|
|
var test = require('test');
|
|
try {
|
|
require('bogus');
|
|
test.print('FAIL require throws error when module missing', 'fail');
|
|
} catch (exception) {
|
|
test.print('PASS require throws error when module missing', 'pass');
|
|
}
|
|
test.print('DONE', 'info');
|
|
|