File tree 1 file changed +17
-0
lines changed
1 file changed +17
-0
lines changed Original file line number Diff line number Diff line change 1
1
import * as React from "react" ;
2
2
import { Moment } from "moment" ;
3
+ import * as moment from "moment" ;
3
4
import * as ReactDatetime from "react-datetime" ;
4
5
5
6
/*
@@ -20,6 +21,22 @@ const TEST_DATE_PROPS_FOR_DEFAULT_VALUE: JSX.Element = <ReactDatetime
20
21
defaultValue = { new Date ( ) }
21
22
/> ;
22
23
24
+ const TEST_DATE_PROPS_FOR_VALUE_AS_MOMENT : JSX . Element = < ReactDatetime
25
+ value = { moment ( ) }
26
+ /> ;
27
+
28
+ const TEST_DATE_PROPS_FOR_VALUE_AS_STRING : JSX . Element = < ReactDatetime
29
+ value = { '1995-12-25' }
30
+ /> ;
31
+
32
+ const TEST_DATE_PROPS_FOR_DEFAULT_VALUE_AS_MOMENT : JSX . Element = < ReactDatetime
33
+ defaultValue = { moment ( ) }
34
+ /> ;
35
+
36
+ const TEST_DATE_PROPS_FOR_DEFAULT_VALUE_AS_STRING : JSX . Element = < ReactDatetime
37
+ defaultValue = { '1995-12-25' }
38
+ /> ;
39
+
23
40
/*
24
41
Test formats
25
42
*/
You can’t perform that action at this time.
0 commit comments