Skip to content

Commit b5fb2d4

Browse files
bricejlincaitp
authored andcommitted
docs(tutorial): improve instructions for causing test failure (step 2)
Increase readability for test fail line Closes angular#6943
1 parent 6c3a051 commit b5fb2d4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/content/tutorial/step_02.ngdoc

+1-1
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@ To run the tests, and then watch the files for changes: `npm test`.
241241
<tr ng-repeat="i in [0, 1, 2, 3, 4, 5, 6, 7]"><td>{{i+1}}</td></tr>
242242
</table>
243243

244-
* Make the unit test fail by changing the `toBe(3)` statement to `toBe(4)`.
244+
* Make the unit test fail by changing `expect(scope.phones.length).toBe(3)` to instead use `toBe(4)`.
245245

246246

247247
# Summary

0 commit comments

Comments
 (0)