mirror of https://github.com/MingweiSamuel/Riven
12 lines
262 B
JavaScript
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);
|
||
|
});
|
||
|
};
|