MCPcopy
hub / github.com/preactjs/preact / spy

Function spy

test/browser/refs.test.jsx:9–13  ·  view source on GitHub ↗
(name, ...args)

Source from the content-addressed store, hash-verified

7
8// gives call count and argument errors names (otherwise sinon just uses "spy"):
9let spy = (name, ...args) => {
10 let spy = sinon.spy(...args);
11 spy.displayName = `spy('${name}')`;
12 return spy;
13};
14
15describe('refs', () => {
16 let scratch;

Callers 15

componentWillUnmountMethod · 0.85
componentDidMountMethod · 0.85
FooFunction · 0.85
renderMethod · 0.85
constructorMethod · 0.85
renderMethod · 0.85
StateContainerFunction · 0.85
refs.test.jsxFile · 0.85
renderMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected