Skip to content

Commit 9814c75

Browse files
Using toBe instead of toEqual to check array contents
1 parent 2c83c08 commit 9814c75

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/ng/rootScopeSpec.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -552,9 +552,9 @@ describe('Scope', function() {
552552
expect(oldCollection.length).toEqual(1);
553553
expect(newCollection.length).toEqual(2);
554554

555-
expect(oldCollection[0]).toEqual(apples);
556-
expect(newCollection[0]).toEqual(apples);
557-
expect(newCollection[1]).toEqual(blackberries);
555+
expect(oldCollection[0]).toBe(apples);
556+
expect(newCollection[0]).toBe(apples);
557+
expect(newCollection[1]).toBe(blackberries);
558558
}
559559
});
560560

0 commit comments

Comments
 (0)