mirror of
https://github.com/marko-js/marko.git
synced 2025-12-08 19:26:05 +00:00
12 lines
262 B
JavaScript
12 lines
262 B
JavaScript
var expect = require("chai").expect;
|
|
|
|
module.exports = function (helpers) {
|
|
var component = helpers.mount(require.resolve("./index"), {
|
|
name: "john",
|
|
});
|
|
|
|
expect(component.renderedHtml).to.equal(
|
|
'<div class="hello"><div>john</div></div>',
|
|
);
|
|
};
|