Skip to content

Commit

Permalink
Date Transform Test
Browse files Browse the repository at this point in the history
  • Loading branch information
sinclairzx81 committed Nov 19, 2023
1 parent a25d09e commit 1d1c28c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/runtime/value/transform/date.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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', () => {
Expand Down

0 comments on commit 1d1c28c

Please sign in to comment.