mirror of
https://github.com/MingweiSamuel/Riven.git
synced 2025-01-07 09:27:27 -08:00
74eb5fa045
- `example/proxy` is new folder for `example_proxy`. - `riven` is new folder for the main riven lib. - Updated metadata to be an array and include HTTP method.
11 lines
262 B
JavaScript
11 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);
|
|
});
|
|
};
|