From 662f2a25ea56597cc9f43f88344db41a7836b3db Mon Sep 17 00:00:00 2001 From: Robert Jackson Date: Tue, 13 Feb 2018 23:29:27 -0500 Subject: [PATCH] Ensure cleanup is ran for compile tests. --- packages/ember-template-compiler/lib/index.js | 3 ++- .../tests/system/compile_options_test.js | 8 ++++---- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/packages/ember-template-compiler/lib/index.js b/packages/ember-template-compiler/lib/index.js index 2120b607e61..9ddffd9582f 100644 --- a/packages/ember-template-compiler/lib/index.js +++ b/packages/ember-template-compiler/lib/index.js @@ -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'; diff --git a/packages/ember-template-compiler/tests/system/compile_options_test.js b/packages/ember-template-compiler/tests/system/compile_options_test.js index aaa423b010c..5ec899a95a1 100644 --- a/packages/ember-template-compiler/tests/system/compile_options_test.js +++ b/packages/ember-template-compiler/tests/system/compile_options_test.js @@ -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']() { @@ -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) {