(child)
| 90 | expect(stack.children[0].children).toHaveLength(2); |
| 91 | |
| 92 | function expectToBeAStack(child) { |
| 93 | expect(child.type).toBe(A); |
| 94 | expect(child.instance).toBeInstanceOf(A); |
| 95 | expect(child.children).toHaveLength(1); |
| 96 | expect(child.children[0].type).toBe('div'); |
| 97 | expect(child.children[0].instance).toBeDefined(); |
| 98 | expect(child.children[0].children).toHaveLength(0); |
| 99 | } |
| 100 | |
| 101 | function expectToBeBStack(child) { |
| 102 | expect(child.type).toBe(B); |
no outgoing calls
no test coverage detected