Skip to content

Commit c781fc0

Browse files
committed
adding failing test
1 parent 37b6e4b commit c781fc0

File tree

4 files changed

+15
-0
lines changed

4 files changed

+15
-0
lines changed

tests/fixtures/project-npm-tar-gz-at-check/node_modules/example-tar-gz/package.json

Lines changed: 5 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tests/fixtures/project-yarn-tar-gz-at-check/node_modules/example-tar-gz/package.json

Lines changed: 5 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tests/fixtures/project-yarn-tar-gz-at-check/yarn.lock

Whitespace-only changes.

tests/unit/dependency-checker-package-manager-test.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,11 @@ describe('EmberCLIDependencyChecker', function() {
112112
const project = createProject({ 'example-tar-gz': 'http://ember-cli.com/example-2.0.0.tar.gz' }, { root: 'tests/fixtures/project-'+ packageManagerName + '-tar-gz-check' });
113113
assertNoPackageManagerError(project);
114114
});
115+
116+
it('when the version specified is a url to a tar.gz and a _from is provided in the package.json with the package-name@ prefix and urls match', function() {
117+
const project = createProject({ 'example-tar-gz': 'http://ember-cli.com/example-2.0.0.tar.gz' }, { root: 'tests/fixtures/project-'+ packageManagerName + '-tar-gz-at-check' });
118+
assertNoPackageManagerError(project);
119+
});
115120
});
116121

117122
describe('sibling node_modules/ directory', function() {

0 commit comments

Comments
 (0)