fix: ts erros in test file

This commit is contained in:
mingholy.lmh 2025-12-29 17:20:25 +08:00
parent 7b01b26ff5
commit ac3f7cb8c8

View file

@ -184,7 +184,9 @@ describe('SchemaValidator', () => {
};
const params = { options: { enabled: 'true' } };
expect(SchemaValidator.validate(nestedSchema, params)).toBeNull();
expect((params.options as { enabled: boolean }).enabled).toBe(true);
expect((params.options as unknown as { enabled: boolean }).enabled).toBe(
true,
);
});
it('should not affect non-boolean strings', () => {