diff --git a/react-select/react-select-tests.tsx b/react-select/react-select-tests.tsx index cc2cc7376..e42fde53b 100644 --- a/react-select/react-select-tests.tsx +++ b/react-select/react-select-tests.tsx @@ -7,32 +7,79 @@ import * as ReactDOM from "react-dom"; import * as Select from "react-select"; -import * as React from "react"; -import * as ReactDOM from "react-dom"; - -import * as Select from "react-select"; +// some example values +const options = [{ label: "Bar", value: "bar" }]; +const value = [{ label: "Foo", value: "foo", clearableValue: false }]; +const func: any = (newValue: any, event: any) => { return; }; +const filterOption = (options: ReactSelect.Option, filter: string) => options; +const filterOptions = (options: ReactSelect.Option[], filter: string, currentValues: (string | number)[]) => options; +const newOptionCreator = (input: string) => ({ label: input, value: input }); +const loadOptions = (input: string, callback: (options: any[]) => {}) => { }; class SelectTest extends React.Component, {}> { render() { - const options: ReactSelect.Option[] = [{ label: "Foo", value: "bar" }]; - const onChange = (value: any) => console.log(value); return