Skip to content

Commit

Permalink
fix: import deprecate from documented module
Browse files Browse the repository at this point in the history
The internal `deprecate` wrapper imports Ember's deprecation utility
from a different location than the documented one.

When running this addon against the latest version of Ember, a runtime
error occurs where Ember's deprecation function is not defined.

`deprecate` documentation: https://api.emberjs.com/ember/3.24/functions/@ember%2Fdebug/deprecate
  • Loading branch information
alexlafroscia committed Feb 10, 2021
1 parent a739c27 commit 75c0131
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion addon-test-support/-private/deprecate.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { deprecate as emberDeprecate } from '@ember/application/deprecations';
import { deprecate as emberDeprecate } from '@ember/debug';

const NAMESPACE = 'ember-cli-page-object';

Expand Down

0 comments on commit 75c0131

Please sign in to comment.