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

Function expectToBeAStack

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

Source from the content-addressed store, hash-verified

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

Callers 2

expectToBeBStackFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected