| 43 | let scriptErrored = false; |
| 44 | let scriptLoaded = false; |
| 45 | const asyncScriptOnLoadSpy = entry => { |
| 46 | scriptLoaded = entry.loaded; |
| 47 | scriptErrored = entry.errored; |
| 48 | asyncScriptOnLoadCalled = true; |
| 49 | }; |
| 50 | // eslint-disable-next-line no-unused-vars |
| 51 | const ComponentWrapper = makeAsyncScriptLoader(URL)(MockedComponent); |
| 52 | expect(ComponentWrapper.displayName).toEqual( |
nothing calls this directly
no outgoing calls
no test coverage detected
searching dependent graphs…