mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2026-07-13 07:12:44 +00:00
785086e0a5
* fix: apply automatic eslint fixes * lint: allow hashbang comment for tiddlywiki.js * lint: first back of manual lint fixes for unused vars * lint: added more fixes for unused vars * lint: missed files * lint: updated eslint config with selected rules from #9669
20 lines
347 B
JavaScript
20 lines
347 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");
|
|
|