Skip to content

Commit

Permalink
fix: add repro for #279 (comment)
Browse files Browse the repository at this point in the history
  • Loading branch information
Skn0tt committed Dec 6, 2023
1 parent 99d8a14 commit 5fa55b7
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions src/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -686,6 +686,21 @@ describe('stringify & parse', () => {
},
},
},
'repro #281': {
input: {
schema: { constructor: { type: 'string' } },
createdAt: new Date('2023-12-06T10:49:28.911Z'),
},
output: {
schema: { constructor: { type: 'string' } },
createdAt: '2023-12-06T10:49:28.911Z',
},
outputAnnotations: {
values: {
createdAt: ['Date'],
},
},
},
};

function deepFreeze(object: any, alreadySeenObjects = new Set()) {
Expand Down

0 comments on commit 5fa55b7

Please sign in to comment.