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

Class TestClass

src/__tests__/trackEventMethodDecorator.test.js:19–33  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

17 const spyTestEvent = jest.fn();
18
19 class TestClass {
20 constructor() {
21 this.props = {
22 tracking: {
23 trackEvent,
24 },
25 };
26 }
27
28 @trackEventMethodDecorator(trackingData)
29 // eslint-disable-next-line class-methods-use-this
30 handleTestEvent(x) {
31 spyTestEvent(x);
32 }
33 }
34
35 const myTC = new TestClass();
36 myTC.handleTestEvent('x');

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…