mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2026-03-29 19:11:31 +00: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
24 lines
287 B
JavaScript
24 lines
287 B
JavaScript
/*\
|
|
title: test.js
|
|
type: application/javascript
|
|
module-type: library
|
|
|
|
testing lib
|
|
|
|
\*/
|
|
|
|
|
|
exports.assert = function(cond, msg) {
|
|
if(!cond) {
|
|
if(msg) {
|
|
throw msg;
|
|
} else {
|
|
throw "ASSERT FAILED";
|
|
}
|
|
}
|
|
};
|
|
|
|
exports.print = function() {
|
|
console.log.apply(console, arguments);
|
|
};
|