Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
function parse(phrase, langs, input, expectedDate, done) {
function callback(err, data) {
expect(data).to.have.length(3);
expect(data[1].data.result.test).to.equalDate(expectedDate);
expect(data[1].data.result.test).to.equalTime(expectedDate);
done(null, data[1].data);
}
var parser = new lacona.Parser();
parser.sentences = [phrase()];
parser.langs = langs;
es.readArray([input])
.pipe(parser)
.pipe(es.writeArray(callback));
}
header: function (block) {
es.readArray([
''
].map(function (str) {
return block.indent + str;
})).pipe(block);
}
}))
function pipeTemplate(block, template) {
eventStream.readArray([
template
].map(function (str) {
return block.indent + str;
})).pipe(block);
}
function pipeTemplate(block, template) {
eventStream.readArray([
template
].map(function (str) {
return block.indent + str;
})).pipe(block);
}
function src(files, opt) {
opt = opt || {};
return es.readArray(files.map(function (file) {
return fixture(file, opt.read);
}));
}