Riven/riven/srcgen/node_modules/dot/test/util.js

12 lines
262 B
JavaScript

'use strict';
var assert = require('assert')
var doT = require('../doT');
exports.test = function (templates, data, result) {
templates.forEach(function (tmpl) {
var fn = doT.template(tmpl);
assert.strictEqual(fn(data), result);
});
};