mirror of
https://github.com/marko-js/marko.git
synced 2026-02-01 16:07:13 +00:00
* * Setup utility to run jsdom tests in the same process without bundling. * Cleanup require hooks in test suite. * Test organization and cleanup. * Remove redundant autotest utilities. * Switch to require for browser.json loading * Cache browser.json remaps. Fix components-browser rehydration setup * Improve inline docs, remove some unneeded init code for testing modules. * Remove unneeded promise polyfill
25 lines
581 B
JavaScript
25 lines
581 B
JavaScript
'use strict';
|
|
|
|
require('../__util__/test-init');
|
|
|
|
var chai = require('chai');
|
|
chai.config.includeStack = true;
|
|
var path = require('path');
|
|
var autotest = require('../autotest');
|
|
var runRenderTest = require('../__util__/runRenderTest');
|
|
|
|
describe('render-html', function () {
|
|
autotest.scanDir(path.join(__dirname, './fixtures'), run);
|
|
|
|
});
|
|
|
|
describe('render-html (deprecated)', function () {
|
|
autotest.scanDir(path.join(__dirname, './fixtures-deprecated'), run);
|
|
})
|
|
|
|
function run(dir, helpers, done) {
|
|
runRenderTest(dir, helpers, done, {
|
|
output: 'html'
|
|
});
|
|
}
|