How to use the inferno-test-utils.isRenderedClassComponentOfType function in inferno-test-utils

To help you get started, we’ve selected a few inferno-test-utils examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github styletron / styletron / packages / styletron-inferno / src / __tests__ / browser.js View on Github external
innerRef: innerComponent => {
          t.ok(
            InfernoTestUtils.isRenderedClassComponentOfType(
              innerComponent,
              InnerComponent
            ),
            'is InnerComponent'
          );
          this.innerComponent = innerComponent;
        },
      });
github styletron / styletron / packages / styletron-inferno / src / __tests__ / browser.js View on Github external
componentDidMount() {
      t.ok(
        InfernoTestUtils.isRenderedClassComponentOfType(
          this.innerComponent,
          InnerComponent
        ),
        'is InnerComponent'
      );
    }
    render() {