From 1d1c28c4900adcdd273bbd8cf450e1d5eb09781b Mon Sep 17 00:00:00 2001 From: sinclair Date: Mon, 20 Nov 2023 04:35:22 +0900 Subject: [PATCH] Date Transform Test --- test/runtime/value/transform/date.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/runtime/value/transform/date.ts b/test/runtime/value/transform/date.ts index bc7fec5f5..e81ff7a89 100644 --- a/test/runtime/value/transform/date.ts +++ b/test/runtime/value/transform/date.ts @@ -26,9 +26,9 @@ describe('value/transform/Date', () => { // -------------------------------------------------------- const T1 = Type.Transform(Type.Date()) .Decode((value) => 1) - .Encode((value) => new Date()) + .Encode((value) => new Date(0)) it('Should decode mapped', () => { - const R = Encoder.Decode(T1, new Date()) + const R = Encoder.Decode(T1, new Date(0)) Assert.IsEqual(R, 1) }) it('Should encode mapped', () => {