(child)
| 99 | } |
| 100 | |
| 101 | function expectToBeBStack(child) { |
| 102 | expect(child.type).toBe(B); |
| 103 | expect(child.instance).toBeInstanceOf(B); |
| 104 | expect(child.children).toHaveLength(1); |
| 105 | expectToBeAStack(child.children[0]); |
| 106 | } |
| 107 | |
| 108 | expectToBeAStack(stack.children[0].children[0]); |
| 109 | expectToBeBStack(stack.children[0].children[1]); |
no test coverage detected