diff --git a/vscode/test/gitea/stateJson.test.ts b/vscode/test/gitea/stateJson.test.ts index 95bb7f6..02bbf41 100644 --- a/vscode/test/gitea/stateJson.test.ts +++ b/vscode/test/gitea/stateJson.test.ts @@ -397,18 +397,18 @@ describe('deleteLocalBranch', () => { describe('hasStateColumn', () => { it('带 column 的 state JSON → true', async () => { - const { hasStateColumn } = await import('../../src/gitea/stateJson') + const { hasStateColumn } = await import('../../src/gitea/stateJson.js') expect(hasStateColumn('{"column":"done","pr":"318"}')).toBe(true) expect(hasStateColumn(' {"column":"in-progress"} ')).toBe(true) }) it('没有 column 的 state JSON → false', async () => { - const { hasStateColumn } = await import('../../src/gitea/stateJson') + const { hasStateColumn } = await import('../../src/gitea/stateJson.js') expect(hasStateColumn('{"pr":"318","branch":"feature/x"}')).toBe(false) }) it('普通文本、审查评论、空值 → false', async () => { - const { hasStateColumn } = await import('../../src/gitea/stateJson') + const { hasStateColumn } = await import('../../src/gitea/stateJson.js') expect(hasStateColumn('\n看着没问题')).toBe(false) expect(hasStateColumn('拖到完成列了')).toBe(false) expect(hasStateColumn('')).toBe(false) @@ -416,7 +416,7 @@ describe('hasStateColumn', () => { }) it('json 数组不算 state 评论', async () => { - const { hasStateColumn } = await import('../../src/gitea/stateJson') + const { hasStateColumn } = await import('../../src/gitea/stateJson.js') expect(hasStateColumn('[{"column":"done"}]')).toBe(false) }) })