mirror of
https://github.com/marko-js/marko.git
synced 2025-12-08 19:26:05 +00:00
12 lines
296 B
JavaScript
12 lines
296 B
JavaScript
var expect = require('chai').expect;
|
|
|
|
module.exports = function(helpers) {
|
|
var component = helpers.mount(require('./index'), { });
|
|
|
|
expect(component.helloReceived).to.equal(false);
|
|
|
|
component.el.querySelector('button').click();
|
|
|
|
expect(component.helloReceived).to.equal(true);
|
|
};
|