mirror of
https://github.com/QwenLM/qwen-code.git
synced 2026-04-28 19:52:02 +00:00
fix: ts erros in test file
This commit is contained in:
parent
7b01b26ff5
commit
ac3f7cb8c8
1 changed files with 3 additions and 1 deletions
|
|
@ -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', () => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue