diff --git a/test/compiler/events-custom/_config.js b/test/compiler/events-custom/_config.js new file mode 100644 index 0000000000..226fc3534f --- /dev/null +++ b/test/compiler/events-custom/_config.js @@ -0,0 +1,19 @@ +import * as assert from 'assert'; + +export default { + test ( component ) { + let count = 0; + + const expected = { x: 1 }; + + component.on( 'foo', data => { + assert.equal( data, expected ); + count += 1; + }); + + component.fire( 'foo', expected ); + assert.equal( count, 1 ); + + component.teardown(); + } +}; diff --git a/test/compiler/events-custom/main.html b/test/compiler/events-custom/main.html new file mode 100644 index 0000000000..7c89b545c5 --- /dev/null +++ b/test/compiler/events-custom/main.html @@ -0,0 +1 @@ +