MCPcopy
hub / github.com/nytimes/react-tracking / Test

Class Test

src/__tests__/makeClassMemberDecorator.test.js:14–20  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

12 const mockDecorator = jest.fn(x => x);
13 const thingSpy = jest.fn();
14 class Test {
15 @makeClassMemberDecorator(mockDecorator)
16 // eslint-disable-next-line class-methods-use-this
17 thing() {
18 thingSpy();
19 }
20 }
21 const myTest = new Test();
22
23 expect(thingSpy).not.toHaveBeenCalled();

Callers

nothing calls this directly

Calls 1

makeClassMemberDecoratorFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…