mirror of
https://github.com/marko-js/marko.git
synced 2025-12-08 19:26:05 +00:00
14 lines
467 B
JavaScript
14 lines
467 B
JavaScript
var nodePath = require('path');
|
|
var fs = require('fs');
|
|
|
|
exports.check = function(marko, markoCompiler, expect, done) {
|
|
var compiledPath;
|
|
|
|
var templatePath = nodePath.join(__dirname, 'template.marko');
|
|
compiledPath = nodePath.join(__dirname, 'template.marko.js');
|
|
var template = marko.load(templatePath);
|
|
expect(fs.existsSync(compiledPath)).to.equal(true);
|
|
expect(template.renderSync({name: 'Frank'})).to.equal('Hello Frank!');
|
|
|
|
done();
|
|
}; |