MCPcopy Create free account
hub / github.com/gaearon/react-hot-loader / expectToBeBStack

Function expectToBeBStack

test/internal/getReactStack.test.js:101–106  ·  view source on GitHub ↗
(child)

Source from the content-addressed store, hash-verified

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]);

Callers 1

Calls 1

expectToBeAStackFunction · 0.85

Tested by

no test coverage detected