mirror of
https://github.com/marko-js/marko.git
synced 2025-12-08 19:26:05 +00:00
17 lines
416 B
JavaScript
17 lines
416 B
JavaScript
var expect = require("chai").expect;
|
|
|
|
module.exports = function (helpers) {
|
|
var component = helpers.mount(require.resolve("./index"), {});
|
|
|
|
expect(helpers.targetEl.innerHTML).to.equal(
|
|
'<div class="foo"></div><a href="ebay.com">eBay</a>',
|
|
);
|
|
|
|
component.forceUpdate();
|
|
component.update();
|
|
|
|
expect(helpers.targetEl.innerHTML).to.equal(
|
|
'<div class="foo"></div><a href="ebay.com">eBay</a>',
|
|
);
|
|
};
|