marko/test/compiler-test.js
Patrick Steele-Idem 069b3e5ba9 Initial commit for marko v3 with htmljs-parser
Work-in-progress. Lots of failing tests.
2015-11-24 14:30:32 -07:00

18 lines
508 B
JavaScript

'use strict';
var chai = require('chai');
chai.config.includeStack = true;
var path = require('path');
var compiler = require('../compiler');
var autotest = require('./autotest');
describe('compiler', function() {
var autoTestDir = path.join(__dirname, 'fixtures/compiler/autotest');
autotest.scanDir(autoTestDir, function run(dir) {
var templatePath = path.join(dir, 'template.marko');
var compiledSrc = compiler.compileFile(templatePath);
return compiledSrc;
});
});