mirror of
https://github.com/Jermolene/TiddlyWiki5.git
synced 2026-03-14 10:42:49 -07:00
* 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
19 lines
347 B
JavaScript
19 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");
|
|
|