Skip to content

Commit 174014c

Browse files
cexbrayatfilipesilva
authored andcommitted
fix(@angular/cli): restore e2e blueprint
This reverts commit ba15605. The commit introduced non idiomatic Protractor code.
1 parent c773964 commit 174014c

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

packages/@angular/cli/blueprints/ng/files/e2e/app.e2e-spec.ts

+2-4
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,8 @@ describe('<%= htmlComponentName %> App', () => {
77
page = new <%= jsComponentName %>Page();
88
});
99

10-
it('should display welcome message', done => {
10+
it('should display welcome message', () => {
1111
page.navigateTo();
12-
page.getParagraphText()
13-
.then(msg => expect(msg).toEqual('Welcome to <%= prefix %>!!'))
14-
.then(done, done.fail);
12+
expect(page.getParagraphText()).toEqual('Welcome to <%= prefix %>!!');
1513
});
1614
});

0 commit comments

Comments
 (0)