Skip to content

Commit

Permalink
Make test-support deprecation message more conventional
Browse files Browse the repository at this point in the history
  • Loading branch information
ro0gr committed Feb 4, 2018
1 parent 3fc7b79 commit af28377
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion test-support/page-object.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ export default {

export { buildSelector, findElementWithAssert, findElement, getContext, fullScope } from 'ember-cli-page-object';

deprecate(`Importing from "test-support" is now deprecated. Just import directly from the "ember-cli-page-object" module instead.`, false, {
deprecate(`Importing from "test-support" is now deprecated. Please import directly from the "ember-cli-page-object" module instead.`, false, {
id: 'ember-cli-page-object.import-from-test-support',
until: "2.0.0",
url: "https://gist.github.com/san650/17174e4b7b1fd80b049a47eb456a7cdc#file-import-from-test-support-js"
Expand Down
2 changes: 1 addition & 1 deletion tests/integration/deprecations/test-support-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,5 @@ test('import from test-support leads to the deprecation', function(assert) {

require('dummy/tests/page-object');

assert.expectDeprecation(`Importing from "test-support" is now deprecated. Just import directly from the "ember-cli-page-object" module instead.`);
assert.expectDeprecation(`Importing from "test-support" is now deprecated. Please import directly from the "ember-cli-page-object" module instead.`);
})

0 comments on commit af28377

Please sign in to comment.