Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Introduce "strip" and deprecate "environments" option #42

Merged
merged 4 commits into from
Jan 9, 2017

Conversation

Turbo87
Copy link
Collaborator

@Turbo87 Turbo87 commented Jan 9, 2017

Resolves #41

No need to register it for the addon *and* the parent app
Actually, we don't replace it, but instead we deprecate the old option and introduce the new option on the side
@Turbo87 Turbo87 requested review from marcoow and pangratz January 9, 2017 14:31
var StripTestSelectorsTransform = require('./strip-test-selectors');
if (addonOptions.environments) {
ui.writeDeprecateLine('The "environments" option in "ember-test-selectors" has been replaced ' +
'with a "strip" option. Use e.g. "strip: EmberApp.env() === \'production\'" instead to ' +
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"with the "strip" option"?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

my gut feeling says "with a "strip" option" sounds better, but I'm happy with either. maybe we should ask a native english speaker. 🤷‍♂️

Copy link
Member

@marcoow marcoow Jan 9, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we should ask a native english speaker

👍 /cc @oliverbarnes, @sapeien

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the would be more correct in my opinion, because it matches the the from the beginning of the sentence.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Concur about the over a.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated. Thanks everyone!

@Turbo87 Turbo87 merged commit 3cc9bdc into mainmatter:master Jan 9, 2017
@Turbo87 Turbo87 deleted the tests-prop branch January 9, 2017 16:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants