mirror of
https://github.com/marko-js/marko.git
synced 2025-12-08 19:26:05 +00:00
15 lines
354 B
JavaScript
15 lines
354 B
JavaScript
var expect = require('chai').expect;
|
|
|
|
module.exports = function(helpers) {
|
|
var component = helpers.mount(require('./index'), {});
|
|
|
|
|
|
|
|
component.getComponent('bar').emitTestEvent1();
|
|
|
|
expect(component.testEvent1Fired).to.equal(true);
|
|
|
|
component.getComponent('bar').emitTestEvent2();
|
|
|
|
expect(component.testEvent2Fired).to.equal(true);
|
|
}; |