| 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'); |
nothing calls this directly
no test coverage detected
searching dependent graphs…