mirror of
https://github.com/marko-js/marko.git
synced 2025-12-08 19:26:05 +00:00
17 lines
480 B
JavaScript
17 lines
480 B
JavaScript
var nodePath = require('path');
|
|
|
|
exports.check = function(marko, markoCompiler, expect, done) {
|
|
var template = marko.load(nodePath.join(__dirname, 'template.marko'));
|
|
template.renderToString({
|
|
name: 'John'
|
|
},
|
|
function(err, html, out) {
|
|
if (err) {
|
|
return done(err);
|
|
}
|
|
|
|
expect(html).to.equal(out.getOutput());
|
|
expect(html).to.equal('Hello John!');
|
|
done();
|
|
});
|
|
}; |