UNPKG

interpreted

Version:

node-tap wrapper for testing input/output functionality

19 lines (13 loc) 388 B
Error.stackTraceLimit = 0; var path = require('path'); var interpreted = require('../../interpreted.js'); interpreted({ expected: path.resolve(__dirname, 'expected'), source: path.resolve(__dirname, 'source'), start: function (callback) { callback(new Error('fake error')); }, test: function (name, content, callback) { callback(null, JSON.parse(content)); } });