fix(migration): 레거시 개장 시각 센티널 허용

This commit is contained in:
2026-08-18 16:27:45 +00:00
parent 79e2ad0108
commit add7ab96d1
2 changed files with 24 additions and 1 deletions
@@ -114,6 +114,20 @@ describe('legacy archive game migration', () => {
expect(resolveLegacyGameOpenedAt({}, new Date('2020-01-01T00:00:00.000Z'), 'fixture').toISOString()).toBe(
'2020-01-01T00:00:00.000Z'
);
expect(
resolveLegacyGameOpenedAt(
{ opentime: -324000000, starttime: 0 },
new Date('2026-08-10T22:00:00.000Z'),
'fixture'
).toISOString()
).toBe('2026-08-10T22:00:00.000Z');
expect(
resolveLegacyGameOpenedAt(
{ opentime: 'not-a-date' },
new Date('2026-08-10T22:00:00.000Z'),
'fixture'
).toISOString()
).toBe('2026-08-10T22:00:00.000Z');
});
it('keeps dry-run target-read-only while reporting normalized formats', async () => {