test(skill-local): cover quoted booleans

This commit is contained in:
Yichen Jiang
2026-07-28 17:38:45 +08:00
parent 3764778be3
commit 09d14e344f

View File

@@ -265,8 +265,8 @@ describe('LocalSkillProvider', () => {
const home = await tempDir('skill-invocation-booleans')
const root = join(home, '.dsh/skills')
await mkdir(root, { recursive: true })
const truthy = ['true', 'TRUE', 'yes', 'ON', '1', '"1"']
const falsy = ['false', 'FALSE', 'no', 'OFF', '0', '"0"']
const truthy = ['true', 'TRUE', '"true"', 'yes', 'ON', '1', '"1"']
const falsy = ['false', 'FALSE', '"false"', 'no', 'OFF', '0', '"0"']
for (const [index, value] of truthy.entries()) {
await writeFile(join(root, `truthy-${index}.md`), [
'---',