Skip to content

Commit

Permalink
[types] Add more type tests for h function (#1246)
Browse files Browse the repository at this point in the history
* Add TS tests for h function
  • Loading branch information
gpoitch authored and marvinhagemeister committed Nov 4, 2018
1 parent 3bbcdcc commit 377e31b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/ts/preact.tsx
Expand Up @@ -39,6 +39,8 @@ function DummerComponent({ input, initialInput }: DummerComponentProps) {
return <div>Input: {input}, initial: {initialInput}</div>;
}

render(h('div', { title: "test", key: "1" }), document);
render(h(DummyComponent, { initialInput: "The input", key: "1" }), document);
render(h(DummerComponent, { initialInput: "The input", input: "New input", key: "1"}), document);

// Accessing children
Expand Down

0 comments on commit 377e31b

Please sign in to comment.