From 3f1dfc14c75968d4495a45f20f740df97d9fc93f Mon Sep 17 00:00:00 2001 From: Leonid Cupikov Date: Thu, 20 Sep 2018 06:45:37 +0300 Subject: [PATCH] Test for toString option with format parameter --- types/pikaday/pikaday-tests.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/types/pikaday/pikaday-tests.ts b/types/pikaday/pikaday-tests.ts index d2030cb266..14a9e0e63b 100644 --- a/types/pikaday/pikaday-tests.ts +++ b/types/pikaday/pikaday-tests.ts @@ -97,6 +97,7 @@ new Pikaday({field: $('#datepicker')[0]}); (() => { new Pikaday({ - yearRange: 5 + yearRange: 5, + toString: (date, format) => '2017-08-23' }); })();