Skip to content

Commit 5fa55b7

Browse files
committed
fix: add repro for #279 (comment)
1 parent 99d8a14 commit 5fa55b7

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

src/index.test.ts

+15
Original file line numberDiff line numberDiff line change
@@ -686,6 +686,21 @@ describe('stringify & parse', () => {
686686
},
687687
},
688688
},
689+
'repro #281': {
690+
input: {
691+
schema: { constructor: { type: 'string' } },
692+
createdAt: new Date('2023-12-06T10:49:28.911Z'),
693+
},
694+
output: {
695+
schema: { constructor: { type: 'string' } },
696+
createdAt: '2023-12-06T10:49:28.911Z',
697+
},
698+
outputAnnotations: {
699+
values: {
700+
createdAt: ['Date'],
701+
},
702+
},
703+
},
689704
};
690705

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

0 commit comments

Comments
 (0)