mirror of
https://github.com/marko-js/marko.git
synced 2025-12-08 19:26:05 +00:00
23 lines
446 B
JavaScript
23 lines
446 B
JavaScript
"use strict";
|
|
|
|
require("../__util__/test-init");
|
|
|
|
var autotest = require("mocha-autotest").default;
|
|
|
|
autotest("fixtures", run);
|
|
|
|
function run(fixture) {
|
|
let test = fixture.test;
|
|
let resolve = fixture.resolve;
|
|
let snapshot = fixture.snapshot;
|
|
test((done) => {
|
|
var testFunc = require(resolve("test.js"));
|
|
if (testFunc.length <= 1) {
|
|
testFunc(snapshot);
|
|
done();
|
|
} else {
|
|
testFunc(snapshot, done);
|
|
}
|
|
});
|
|
}
|