mirror of https://github.com/sveltejs/svelte
parent
2686508af3
commit
6eeff1960c
@ -0,0 +1,15 @@
|
||||
import * as assert from 'assert';
|
||||
|
||||
export default {
|
||||
test ( component ) {
|
||||
let count = 0;
|
||||
|
||||
component.on( 'teardown', function () {
|
||||
assert.equal( this, component );
|
||||
count += 1;
|
||||
});
|
||||
|
||||
component.teardown();
|
||||
assert.equal( count, 1 );
|
||||
}
|
||||
};
|
@ -0,0 +1 @@
|
||||
<div></div>
|
Loading…
Reference in new issue