MCPcopy Create free account
hub / github.com/dozoisch/react-async-script / MockedComponentWithStatic

Class MockedComponentWithStatic

test/async-script-loader-spec.js:153–160  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

151
152 it("should expose statics", done => {
153 class MockedComponentWithStatic extends React.Component {
154 static callsACallback(fn) {
155 fn();
156 }
157 render() {
158 return <span />;
159 }
160 }
161 const URL = "http://example.com/?functions=true";
162 const ComponentWrapper = makeAsyncScriptLoader(URL)(
163 MockedComponentWithStatic

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…