Skip to content

Commit

Permalink
ci: when testing with ng4 add ng4 to all ng new calls (#4974)
Browse files Browse the repository at this point in the history
There was a missing one for routing.
  • Loading branch information
hansl authored Feb 24, 2017
1 parent a537dce commit 84e67ce
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tests/e2e/utils/project.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,17 +32,18 @@ export function ngServe(...args: string[]) {


export function createProject(name: string, ...args: string[]) {
const argv: any = getGlobalVariable('argv');

return Promise.resolve()
.then(() => process.chdir(getGlobalVariable('tmp-root')))
.then(() => ng('new', name, '--skip-install', ...args))
.then(() => ng('new', name, '--skip-install', ...(argv['ng4'] ? ['--ng4'] : []), ...args))
.then(() => process.chdir(name))
.then(() => updateJsonFile('package.json', json => {
Object.keys(packages).forEach(pkgName => {
json['dependencies'][pkgName] = packages[pkgName].dist;
});
}))
.then(() => {
const argv: any = getGlobalVariable('argv');
if (argv.nightly || argv['ng-sha']) {
const label = argv['ng-sha'] ? `#2.0.0-${argv['ng-sha']}` : '';
return updateJsonFile('package.json', json => {
Expand Down

0 comments on commit 84e67ce

Please sign in to comment.