mirror of
https://github.com/marko-js/marko.git
synced 2025-12-08 19:26:05 +00:00
9 lines
329 B
JavaScript
9 lines
329 B
JavaScript
var nodePath = require('path');
|
|
|
|
exports.check = function(marko, markoCompiler, expect, done) {
|
|
var template = marko.load(nodePath.join(__dirname, 'template.marko'));
|
|
expect(function() {
|
|
template.renderToString({ name: 'John' });
|
|
}).to.throw('beginAsync() not allowed when using renderSync()');
|
|
done();
|
|
}; |