mirror of https://github.com/sveltejs/svelte
parent
35412a9a92
commit
58e532fc08
@ -1,15 +0,0 @@
|
|||||||
export default {
|
|
||||||
test(assert, 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);
|
|
||||||
}
|
|
||||||
};
|
|
@ -1 +0,0 @@
|
|||||||
<div></div>
|
|
Loading…
Reference in new issue