mirror of
https://github.com/marko-js/marko.git
synced 2025-12-08 19:26:05 +00:00
BREAKING CHANGE: api for compile-time tags has changed. This affects tranformer/node-factory/code-generator tags. Co-authored-by: Michael Rawlings <mirawlings@ebay.com> Co-authored-by: Dylan Piercey <dpiercey@ebay.com> Co-authored-by: Andrew Gliga <agliga@ebay.com>
27 lines
581 B
JavaScript
27 lines
581 B
JavaScript
"use strict";
|
|
|
|
require("../__util__/test-init");
|
|
|
|
var chai = require("chai");
|
|
chai.config.includeStack = true;
|
|
var expect = require("chai").expect;
|
|
require("../../compiler");
|
|
var autotest = require("mocha-autotest").default;
|
|
var marko = require("../../");
|
|
var markoCompiler = require("../../compiler");
|
|
|
|
autotest("fixtures", fixture => {
|
|
let test = fixture.test;
|
|
let resolve = fixture.resolve;
|
|
let snapshot = fixture.snapshot;
|
|
test(done => {
|
|
require(resolve("test.js")).check(
|
|
marko,
|
|
markoCompiler,
|
|
expect,
|
|
snapshot,
|
|
done
|
|
);
|
|
});
|
|
});
|