Skip to content

Commit

Permalink
fixed build error
Browse files Browse the repository at this point in the history
  • Loading branch information
Havunen committed Nov 26, 2024
1 parent 10cab42 commit 0f0e6de
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import {Component, createRef, forwardRef, Fragment, Inferno, type RefObject, render} from 'inferno';
import { Component, createRef, forwardRef, Fragment, type Inferno, type RefObject, render } from 'inferno';
import { createElement } from 'inferno-create-element';
import SFC = Inferno.SFC;

describe('CreateElement (non-JSX)', () => {
let container;
Expand Down Expand Up @@ -150,10 +149,11 @@ describe('CreateElement (non-JSX)', () => {
let myRef: any = 'myRef';

const app = () => {
const node: SFC<any> = () =>
const node: Inferno.StatelessComponent<any> = () =>
createElement('a', {
ref: (c) => (myRef = c),
});

return createElement(node, {
onComponentDidMount() {
expect(myRef.tagName).toBe('A');
Expand Down

0 comments on commit 0f0e6de

Please sign in to comment.