From a13bdd24337a54906f754af92c8d5967c32c0e39 Mon Sep 17 00:00:00 2001 From: Lyle Johnson Date: Thu, 31 May 2018 10:34:47 -0500 Subject: [PATCH] Add sanity tests for DateTime#fromMillis() and DateTime#toMillis() --- types/luxon/luxon-tests.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/types/luxon/luxon-tests.ts b/types/luxon/luxon-tests.ts index ce9d09ac8f..4396e8d7a2 100644 --- a/types/luxon/luxon-tests.ts +++ b/types/luxon/luxon-tests.ts @@ -54,6 +54,8 @@ DateTime.utc(); DateTime.local().toUTC(); DateTime.utc().toLocal(); +DateTime.fromMillis(1527780819458).toMillis(); + /* Duration */ const dur = Duration.fromObject({ hours: 2, minutes: 7 }); dt.plus(dur);