Skip to content

chore: bump version of npm packages #555

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

Merged
merged 3 commits into from
Apr 28, 2016
Merged

Conversation

jkuri
Copy link
Contributor

@jkuri jkuri commented Apr 28, 2016

No description provided.

@@ -4,7 +4,7 @@ var Blueprint = require('ember-cli/lib/models/blueprint');
var dynamicPathParser = require('../../utilities/dynamic-path-parser');
var addBarrelRegistration = require('../../utilities/barrel-management');
var getFiles = Blueprint.prototype.files;
const stringUtils = require('ember-cli/lib/utilities/string');
const stringUtils = require('ember-cli-string-utils');
Copy link
Contributor

Choose a reason for hiding this comment

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

What is the reason for using the separate ember-cli-string-utils instead of the built-in ember-cli/lib/utilities/string?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

ember-cli with version 2.5.0 does not comes with included string utils, looks like they have removed it from ember-cli and added separated package.

Copy link
Contributor

@filipesilva filipesilva Apr 28, 2016

Choose a reason for hiding this comment

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

Got it.

@filipesilva
Copy link
Contributor

Has my lgtm, let's just make sure both linux, osx and windows tests pass.

@jkuri jkuri force-pushed the npm-updates branch 2 times, most recently from ef10fdb to 10f2904 Compare April 28, 2016 17:20
@jkuri jkuri force-pushed the npm-updates branch 2 times, most recently from e56a138 to a66effa Compare April 28, 2016 18:30
@@ -81,16 +81,6 @@ describe('Acceptance: ng new', function () {
});
});

it('Cannot run ng new, inside of ember-cli project', function () {
Copy link
Contributor

Choose a reason for hiding this comment

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

Why is this test removed?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Don't really know the reason but seems like ember-cli now allows that kind of things. Let me check if I shoud catch here too...

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, I should catch here too, thanks.

@jkuri jkuri force-pushed the npm-updates branch 2 times, most recently from f3c3b9a to 4f23ef6 Compare April 28, 2016 19:02
@@ -133,7 +133,7 @@ describe('Acceptance: ng generate component', function () {
});

it('ng generate component ..' + path.sep + 'my-comp from root dir will fail', () => {
return ng(['generate', 'component', '..' + path.sep + 'my-comp']).then(() => {
return ng(['generate', 'component', '..' + path.sep + 'my-comp']).catch(() => {
Copy link
Contributor

Choose a reason for hiding this comment

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

can you fail the test if then is called?

Copy link
Contributor

Choose a reason for hiding this comment

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

We don't want those to succeed if the ng generate succeeds.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done, with Mikes approach. Please check.

Copy link
Contributor

Choose a reason for hiding this comment

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

Setting null as the success handler will report false positives.

For instance, imagine ng command doesn't fail. The promise will be unrejected and thus the test passes whereas it should fail.

You have to replace the null with a promise rejection, like () => new SilentError() or () => new Promise.reject().

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done. @filipesilva please check again.

@jkuri jkuri force-pushed the npm-updates branch 4 times, most recently from 1e19330 to 7150147 Compare April 28, 2016 20:49
@jkuri jkuri merged commit 2f4ff82 into angular:master Apr 28, 2016
@jkuri jkuri deleted the npm-updates branch April 28, 2016 21:31
@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Sep 9, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants