Skip to content

Commit

Permalink
feat(test): use link-cli option on e2e (#841)
Browse files Browse the repository at this point in the history
  • Loading branch information
filipesilva committed May 19, 2016
1 parent 234de2b commit 85d1400
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions tests/e2e/e2e_workflow.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,17 +47,14 @@ describe('Basic end-to-end Workflow', function () {
it('Can create new project using `ng new test-project`', function () {
this.timeout(4200000);

return ng(['new', 'test-project', '--skip-npm']).then(function () {
return ng(['new', 'test-project', '--link-cli=true']).then(function () {
expect(existsSync(path.join(root, 'test-project')));
});
});

it('Can change current working directory to `test-project`', function () {
this.timeout(420000);
process.chdir(path.join(root, 'test-project'));
sh.exec('npm link angular-cli', { silent: true });
expect(path.basename(process.cwd())).to.equal('test-project');
sh.exec('npm install');
});

it('Supports production builds via `ng build --environment=production`', function() {
Expand Down

0 comments on commit 85d1400

Please sign in to comment.