Skip to content

Commit

Permalink
Remove registerPlugin/unregisterPlugin expectDeprecation's.
Browse files Browse the repository at this point in the history
This deprecation only exists on master.
  • Loading branch information
rwjblue committed Mar 8, 2021
1 parent bcea56f commit ee815f8
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions packages/ember-template-compiler/tests/basic-usage-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,8 @@ moduleFor(
'ember-template-compiler: Embroider-like compilation',
class extends RenderingTestCase {
afterEach() {
expectDeprecation(() => {
unregisterPlugin('ast', removeDataTest);
}, /unregisterPlugin is deprecated, please pass plugins directly via `compile` and\/or `precompile`/);
unregisterPlugin('ast', removeDataTest);

return super.afterEach();
}

Expand All @@ -65,9 +64,7 @@ moduleFor(
}

'@test registerPlugin based transforms can be avoided'(assert) {
expectDeprecation(() => {
registerPlugin('ast', removeDataTest);
}, /registerPlugin is deprecated, please pass plugins directly via `compile` and\/or `precompile`/);
registerPlugin('ast', removeDataTest);

let template = '<div data-test="foo" data-blah="derp" class="hahaha">&nbsp;</div>';

Expand Down

0 comments on commit ee815f8

Please sign in to comment.