Skip to content

Commit

Permalink
Merge pull request #13736 from chadhietala/glimmer-teardown
Browse files Browse the repository at this point in the history
[Glimmer2] Cleanup teardown
  • Loading branch information
krisselden committed Jun 30, 2016
2 parents b83b166 + ffd3d20 commit 22892c6
Showing 1 changed file with 14 additions and 0 deletions.
Expand Up @@ -10,6 +10,16 @@ class LifeCycleHooksTest extends RenderingTest {
this.components = {};
}

teardown() {
super();
this.assertHooks(
'destroy',
['the-top', 'willDestroyElement'],
['the-middle', 'willDestroyElement'],
['the-bottom', 'willDestroyElement']
);
}

/* abstract */
get ComponentClass() {
throw new Error('Not implemented: `ComponentClass`');
Expand Down Expand Up @@ -80,6 +90,10 @@ class LifeCycleHooksTest extends RenderingTest {

didUpdate(options) {
pushHook('didUpdate', options);
},

willDestroyElement() {
pushHook('willDestroyElement');
}
});

Expand Down

0 comments on commit 22892c6

Please sign in to comment.