Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Commit 6341224

Browse files
Firexioncaitp
authored andcommitted
docs(tutorial): make code samples in step 7 match code in angular-phonecat
Update step_07.ngdoc Modifying the code snippets provided to match what was on git Closes #7521
1 parent 9f5c437 commit 6341224

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

docs/content/tutorial/step_07.ngdoc

+10-3
Original file line numberDiff line numberDiff line change
@@ -304,10 +304,17 @@ to various URLs and verify that the correct view was rendered.
304304

305305
```js
306306
...
307-
it('should redirect index.html to index.html#/phones', function() {
308-
browser().navigateTo('app/index.html');
309-
expect(browser().location().url()).toBe('/phones');
307+
it('should redirect index.html to index.html#/phones', function() {
308+
browser.get('app/index.html');
309+
browser.getLocationAbsUrl().then(function(url) {
310+
expect(url.split('#')[1]).toBe('/phones');
311+
});
310312
});
313+
314+
describe('Phone list view', function() {
315+
beforeEach(function() {
316+
browser.get('app/index.html#/phones');
317+
});
311318
...
312319

313320
describe('Phone detail view', function() {

0 commit comments

Comments
 (0)