mirror of
https://github.com/facebook/react.git
synced 2026-11-18 20:15:56 +00:00
Consistently use calls[n].args[n] instead of argsForCall[n][n] for Jasmine spies
This commit is contained in:
1 parent
01817c143c
commit
f8f2be05ce
15 files changed
+81
-81
No files matched your search
@@ -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() {
|
||||
|
||||
Reference in new issue
Block a user