MCPcopy Create free account
hub / github.com/ericclemmons/react-resolver / Test

Class Test

test/resolve.test.js:7–22  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5import { resolve, Resolver } from "..";
6
7@resolve("resolved", ({ actual }) => actual)
8class Test extends React.Component {
9 static displayName = "Test"
10
11 render() {
12 const { expected, resolved } = this.props;
13
14 assert.equal(resolved, expected);
15
16 return (
17 <pre>
18 {resolved}
19 </pre>
20 );
21 }
22}
23
24describe("@resolve", function() {
25 it("wraps Component name", function() {

Callers

nothing calls this directly

Calls 1

resolveFunction · 0.50

Tested by

no test coverage detected