var singleton = require('singletons'); module.exports = testCase({ "should equal one after calling inc": function (test) { test.equal(1, singleton.inc()); test.done(); }, "should get one after calling inc": function(test) { test.equal(1, singleton.inc()); test.done(); } });
var singleton = require('singletons_impr'); module.exports = testCase({ "should equal one after calling inc": function (test) { test.equal(1, singleton().inc()); test.done(); }, "should get one after calling inc": function(test) { test.equal(1, singleton().inc()); test.done(); } });