mirror of
https://github.com/marko-js/marko.git
synced 2025-12-08 19:26:05 +00:00
20 lines
380 B
JavaScript
20 lines
380 B
JavaScript
"use strict";
|
|
|
|
const nodePath = require("path");
|
|
|
|
exports.check = function (marko, markoCompiler, expect, snapshot, done) {
|
|
let template = marko.load(nodePath.join(__dirname, "template.marko"));
|
|
|
|
template
|
|
.render({
|
|
name: "John",
|
|
})
|
|
.then((result) => {
|
|
snapshot(result.toString());
|
|
done();
|
|
})
|
|
.catch((err) => {
|
|
done(err);
|
|
});
|
|
};
|