mirror of
https://github.com/zhigang1992/angular.js.git
synced 2026-04-22 02:45:10 +08:00
docs(tutorial): update step_11.ngdoc
Change toEqual to toEqualData in the test 'should create "phones" model with 2 phones fetched from xhr' to make test more consistent. Closes #7182
This commit is contained in:
committed by
Tobias Bosch
parent
9178c318e1
commit
8570585692
@@ -205,7 +205,7 @@ describe('PhoneCat controllers', function() {
|
||||
|
||||
|
||||
it('should create "phones" model with 2 phones fetched from xhr', function() {
|
||||
expect(scope.phones).toEqual([]);
|
||||
expect(scope.phones).toEqualData([]);
|
||||
$httpBackend.flush();
|
||||
|
||||
expect(scope.phones).toEqualData(
|
||||
|
||||
Reference in New Issue
Block a user