TiddlyWiki5/editions/testcommonjs/tiddlers/method/program.js
Saq Imtiaz 785086e0a5
Fixes ESLint errors (#9668)
* 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
2026-02-20 08:38:42 +00:00

19 lines
390 B
JavaScript

/*\
title: method/program.js
type: application/javascript
module-type: library
Method test
\*/
var test = require("test");
var a = require("./a");
var foo = a.foo;
test.assert(a.foo() == a, "calling a module member");
test.assert(foo() == (function (){return this;})(), "members not implicitly bound");
a.set(10);
test.assert(a.get() == 10, "get and set");
test.print("DONE", "info");