Opal-Estate-Pro/node_modules/memoizee/test/profile.js
2019-09-13 11:27:52 +07:00

15 lines
463 B
JavaScript
Executable File

/* eslint no-empty-function: 0 */
"use strict";
var memoize = require("../plain");
module.exports = function (t, a) {
memoize(function () {})();
memoize(function () {}, { profileName: "test" })();
a(typeof t.statistics, "object", "Access to statistics");
a(Object.keys(t.statistics).length, 2, "Statistics collected including named function");
a(typeof t.log, "function", "Access to log function");
a(typeof t.log(), "string", "Log outputs string");
};