Skip to content

Commit

Permalink
fix(@angular/cli): update protractor API usage in the blueprints.
Browse files Browse the repository at this point in the history
Closes #6163
  • Loading branch information
SamuelMarks authored and hansl committed May 24, 2017
1 parent a34cf2c commit ba15605
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions packages/@angular/cli/blueprints/ng/files/e2e/app.e2e-spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,10 @@ describe('<%= htmlComponentName %> App', () => {
page = new <%= jsComponentName %>Page();
});

it('should display welcome message', () => {
it('should display welcome message', done => {
page.navigateTo();
expect(page.getParagraphText()).toEqual('Welcome to <%= prefix %>!!');
page.getParagraphText()
.then(msg => expect(msg).toEqual('Welcome to <%= prefix %>!!'))
.then(done, done.fail);
});
});

0 comments on commit ba15605

Please sign in to comment.