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

16 lines (12 loc) 251 B
var test = require('tape'); var Parser = require('../'); test('unvalid', function (t) { var count = 0; var p = new Parser(); p.onError = function (value) { count++; t.equal(1, count); t.end(); }; p.write('{"test": eer['); });