Skip to content

Commit 4e27912

Browse files
Mohamed5amyNarretz
authored andcommitted
docs(tutorial/7 - Routing): fix matching in test
It is corrected in github, but not in the angular.org site. Copied it from angular/angular-phonecat@step-6...step-7 Closes angular#12314
1 parent 4cf50d7 commit 4e27912

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/content/tutorial/step_07.ngdoc

+1-1
Original file line numberDiff line numberDiff line change
@@ -313,7 +313,7 @@ to various URLs and verify that the correct view was rendered.
313313
it('should redirect index.html to index.html#/phones', function() {
314314
browser.get('app/index.html');
315315
browser.getLocationAbsUrl().then(function(url) {
316-
expect(url.split('#')[1]).toBe('/phones');
316+
expect(url).toEqual('/phones');
317317
});
318318
});
319319

0 commit comments

Comments
 (0)