MCPcopy Create free account
hub / github.com/DTStack/molecule / expectFnCalled

Function expectFnCalled

test/utils.ts:22–27  ·  view source on GitHub ↗
(action: (testFn: jest.Mock<any, any>) => void)

Source from the content-addressed store, hash-verified

20 * @param action
21 */
22export function expectFnCalled(action: (testFn: jest.Mock<any, any>) => void) {
23 const testFn = jest.fn();
24
25 action(testFn);
26 expect(testFn).toBeCalled();
27}
28
29export function querySelector(className) {
30 return document.body.querySelector(className);

Callers 15

explore.test.tsxFile · 0.90
action.test.tsxFile · 0.90
editor.test.tsxFile · 0.90
tabExtra.test.tsxFile · 0.90
tree.test.tsxFile · 0.90
problems.test.tsFile · 0.90
folderTree.test.tsFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected