Skip to content

Commit

Permalink
Ensure cleanup is ran for compile tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
rwjblue committed Feb 14, 2018
1 parent 22c5642 commit 662f2a2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
3 changes: 2 additions & 1 deletion packages/ember-template-compiler/lib/index.js
Expand Up @@ -14,7 +14,8 @@ export { default as precompile } from './system/precompile';
export { default as compile } from './system/compile';
export {
default as compileOptions,
registerPlugin
registerPlugin,
unregisterPlugin
} from './system/compile-options';
export { default as defaultPlugins } from './plugins';

Expand Down
Expand Up @@ -48,9 +48,9 @@ class CustomTransform {
}

class CustomPluginsTests extends RenderingTestCase {
afterEach() {
teardown() {
customTransformCounter = 0;
return super.afterEach();
return super.teardown();
}

['@test custom plugins can be used']() {
Expand All @@ -73,9 +73,9 @@ moduleFor('ember-template-compiler: registerPlugin with a custom plugins', class
registerPlugin('ast', CustomTransform);
}

afterEach() {
teardown() {
unregisterPlugin('ast', CustomTransform);
return super.afterEach();
return super.teardown();
}

['@test custom registered plugins are deduplicated'](assert) {
Expand Down

0 comments on commit 662f2a2

Please sign in to comment.