Consistently use calls[n].args[n] instead of argsForCall[n][n] for Jasmine spies

This commit is contained in:
Matias Singers
2015-10-12 22:39:19 +08:00
parent 01817c143c
commit f8f2be05ce
15 changed files with 81 additions and 81 deletions
@@ -82,7 +82,7 @@ describe('traverseAllChildren', function() {
);
expect(traverseContext.length).toEqual(1);
expect(console.error.calls.length).toBe(1);
expect(console.error.calls[0].args[0]).toContain('Warning: Each child in an array or iterator should have a unique "key" prop.');
expect(console.error.argsForCall[0][0]).toContain('Warning: Each child in an array or iterator should have a unique "key" prop.');
});
it('should be called for each child', function() {
@@ -326,7 +326,7 @@ describe('traverseAllChildren', function() {
);
expect(console.error.calls.length).toBe(1);
expect(console.error.calls[0].args[0]).toContain('Warning: Each child in an array or iterator should have a unique "key" prop.');
expect(console.error.argsForCall[0][0]).toContain('Warning: Each child in an array or iterator should have a unique "key" prop.');
});
it('should be called for each child in an iterable with keys', function() {