mirror of
https://github.com/Jermolene/TiddlyWiki5.git
synced 2026-03-21 14:21:04 -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
23 lines
287 B
JavaScript
23 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);
|
|
};
|