chore: bump version of npm packages#555
Conversation
| 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'); |
There was a problem hiding this comment.
What is the reason for using the separate ember-cli-string-utils instead of the built-in ember-cli/lib/utilities/string?
There was a problem hiding this comment.
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.
|
Has my lgtm, let's just make sure both linux, osx and windows tests pass. |
ef10fdb to
10f2904
Compare
e56a138 to
a66effa
Compare
| }); | ||
| }); | ||
|
|
||
| it('Cannot run ng new, inside of ember-cli project', function () { |
There was a problem hiding this comment.
Why is this test removed?
There was a problem hiding this comment.
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...
There was a problem hiding this comment.
Yes, I should catch here too, thanks.
f3c3b9a to
4f23ef6
Compare
|
|
||
| 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(() => { |
There was a problem hiding this comment.
can you fail the test if then is called?
There was a problem hiding this comment.
We don't want those to succeed if the ng generate succeeds.
There was a problem hiding this comment.
Done, with Mikes approach. Please check.
There was a problem hiding this comment.
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().
1e19330 to
7150147
Compare
|
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
No description provided.