From d4bf16e299f8ea25477ed9c15a336bce36affe4b Mon Sep 17 00:00:00 2001
From: Simon Egersand <s.egersand@gmail.com>
Date: Sun, 11 Feb 2018 21:31:53 +0100
Subject: [PATCH] Add tests for TS value and defaultValue

---
 typings/react-datetime-tests.tsx |   17 +++++++++++++++++
 1 files changed, 17 insertions(+), 0 deletions(-)

diff --git a/typings/react-datetime-tests.tsx b/typings/react-datetime-tests.tsx
index c67e12c..1299df5 100644
--- a/typings/react-datetime-tests.tsx
+++ b/typings/react-datetime-tests.tsx
@@ -1,5 +1,6 @@
 import * as React from "react";
 import { Moment } from "moment";
+import * as moment from "moment";
 import * as ReactDatetime from "react-datetime";
 
 /*
@@ -20,6 +21,22 @@
 		defaultValue={ new Date() }
 	/>;
 
+const TEST_DATE_PROPS_FOR_VALUE_AS_MOMENT: JSX.Element = <ReactDatetime
+		value={ moment() }
+	/>;
+
+const TEST_DATE_PROPS_FOR_VALUE_AS_STRING: JSX.Element = <ReactDatetime
+		value={ '1995-12-25' }
+	/>;
+
+const TEST_DATE_PROPS_FOR_DEFAULT_VALUE_AS_MOMENT: JSX.Element = <ReactDatetime
+		defaultValue={ moment() }
+	/>;
+
+const TEST_DATE_PROPS_FOR_DEFAULT_VALUE_AS_STRING: JSX.Element = <ReactDatetime
+		defaultValue={ '1995-12-25' }
+	/>;
+
 /*
  Test formats
  */

--
Gitblit v1.9.3