profile.js 463 B

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