Add tests

This commit is contained in:
Kanchalai Tanglertsampan
2016-09-23 17:28:08 -07:00
parent aef58a5405
commit 04640d0e97

View File

@@ -0,0 +1,20 @@
// @jsx: react
declare module JSX {
interface Element {
div: string;
}
}
declare namespace React {
class Component<P, S> {
constructor(props?: P, context?: any);
props: P;
}
}
export class ShortDetails extends React.Component<{ id: number }, {}> {
public render(): JSX.Element {
if (this.props.id < 1) {
return (<div></div>);
}
}
}