Debian Codegraph @

memoizee/test/profile.js

raw
1 /* eslint no-empty-function: 0 */
2
3 "use strict";
4
5 var memoize = require("../plain");
6
7 module.exports = function (t, a) {
8 memoize(function () {})();
9 memoize(function () {}, { profileName: "test" })();
10 a(typeof t.statistics, "object", "Access to statistics");
11 a(Object.keys(t.statistics).length, 2, "Statistics collected including named function");
12 a(typeof t.log, "function", "Access to log function");
13 a(typeof t.log(), "string", "Log outputs string");
14 };