UNPKG

charlike

Version:

Small, fast, simple and streaming project scaffolder for myself, but not only. Supports hundreds of template engines through the @JSTransformers API or if you want custom `render` function passed through options

13 lines (11 loc) 235 B
'use strict'; module.exports = function (t, a) { var d = new Date(); a(t(d), d, "Date"); a.throws(function () { t({}); }, "Object"); a.throws(function () { t({ valueOf: function () { return 20; } }); }, "Number object"); };