Skip to content

Commit

Permalink
Set ember-source dependency to null for bower scenarios
Browse files Browse the repository at this point in the history
  • Loading branch information
Turbo87 committed Nov 6, 2017
1 parent 564ab7d commit 25a1083
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 7 deletions.
15 changes: 15 additions & 0 deletions lib/auto-scenario-config-for-ember.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,11 @@ function generateScenariosFromSemver(semverStatements, availableVersions) {
dependencies: {
ember: versionNum
}
},
npm: {
devDependencies: {
'ember-source': null
}
}
};
});
Expand All @@ -55,6 +60,11 @@ function baseScenarios() {
resolutions: {
ember: 'beta'
}
},
npm: {
devDependencies: {
'ember-source': null
}
}
},
{
Expand All @@ -67,6 +77,11 @@ function baseScenarios() {
resolutions: {
ember: 'canary'
}
},
npm: {
devDependencies: {
'ember-source': null
}
}
}
];
Expand Down
29 changes: 22 additions & 7 deletions test/auto-scenario-config-for-ember-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,11 @@ describe('lib/auto-scenario-config-for-ember', function() {
resolutions: {
ember: 'beta'
}
},
npm: {
devDependencies: {
'ember-source': null
}
}
},
{
Expand All @@ -38,6 +43,11 @@ describe('lib/auto-scenario-config-for-ember', function() {
resolutions: {
ember: 'canary'
}
},
npm: {
devDependencies: {
'ember-source': null
}
}
},
{
Expand All @@ -46,6 +56,11 @@ describe('lib/auto-scenario-config-for-ember', function() {
dependencies: {
ember: '2.0.0'
}
},
npm: {
devDependencies: {
'ember-source': null
}
}
}
]);
Expand All @@ -72,13 +87,13 @@ describe('lib/auto-scenario-config-for-ember', function() {
return autoScenarioConfigForEmber({ versionCompatibility: { ember: '1.0.5 - 1.0.15 || >= 2.1.0 || ^1.11.0 || 1.1.0 - 2.0.0' }, availableVersions: availableVersions }).then(function(config) {
expect(config.scenarios).to.deep.include.members(
[
{ name: 'ember-1.0.15', bower: { dependencies: { ember: '1.0.15' } } },
{ name: 'ember-1.1.3', bower: { dependencies: { ember: '1.1.3' } } },
{ name: 'ember-2.0.0', bower: { dependencies: { ember: '2.0.0' } } },
{ name: 'ember-1.13.0', bower: { dependencies: { ember: '1.13.0' } } },
{ name: 'ember-2.1.1', bower: { dependencies: { ember: '2.1.1' } } },
{ name: 'ember-3.0.0', bower: { dependencies: { ember: '3.0.0' } } },
{ name: 'ember-1.11.14', bower: { dependencies: { ember: '1.11.14' } } }
{ name: 'ember-1.0.15', bower: { dependencies: { ember: '1.0.15' } }, npm: { devDependencies: { 'ember-source': null } } },
{ name: 'ember-1.1.3', bower: { dependencies: { ember: '1.1.3' } }, npm: { devDependencies: { 'ember-source': null } } },
{ name: 'ember-2.0.0', bower: { dependencies: { ember: '2.0.0' } }, npm: { devDependencies: { 'ember-source': null } } },
{ name: 'ember-1.13.0', bower: { dependencies: { ember: '1.13.0' } }, npm: { devDependencies: { 'ember-source': null } } },
{ name: 'ember-2.1.1', bower: { dependencies: { ember: '2.1.1' } }, npm: { devDependencies: { 'ember-source': null } } },
{ name: 'ember-3.0.0', bower: { dependencies: { ember: '3.0.0' } }, npm: { devDependencies: { 'ember-source': null } } },
{ name: 'ember-1.11.14', bower: { dependencies: { ember: '1.11.14' } }, npm: { devDependencies: { 'ember-source': null } } }
]
);
});
Expand Down

0 comments on commit 25a1083

Please sign in to comment.