fix: real project README and save-file version validation
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -20,4 +20,8 @@ describe('notation', () => {
|
||||
it('rejects a file that is not a duplicate-chess save', () => {
|
||||
expect(() => deserialize('{"variant":"chess","version":1,"moves":[]}')).toThrow();
|
||||
});
|
||||
|
||||
it('rejects an unsupported save version', () => {
|
||||
expect(() => deserialize('{"variant":"duplicate-chess","version":99,"moves":[]}')).toThrow();
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user