mirror of
https://github.com/QwenLM/qwen-code.git
synced 2025-12-20 08:47:44 +00:00
chore: format&lint
This commit is contained in:
@@ -22,7 +22,12 @@ vi.mock('fs', async (importOriginal) => {
|
|||||||
existsSync,
|
existsSync,
|
||||||
writeFileSync,
|
writeFileSync,
|
||||||
readFileSync,
|
readFileSync,
|
||||||
default: { ...(actual as unknown as Record<string, unknown>), existsSync, writeFileSync, readFileSync },
|
default: {
|
||||||
|
...(actual as unknown as Record<string, unknown>),
|
||||||
|
existsSync,
|
||||||
|
writeFileSync,
|
||||||
|
readFileSync,
|
||||||
|
},
|
||||||
} as unknown as typeof import('fs');
|
} as unknown as typeof import('fs');
|
||||||
});
|
});
|
||||||
|
|
||||||
@@ -87,7 +92,9 @@ describe('initCommand', () => {
|
|||||||
|
|
||||||
// Assert: Check that the correct prompt is submitted
|
// Assert: Check that the correct prompt is submitted
|
||||||
expect(result.type).toBe('submit_prompt');
|
expect(result.type).toBe('submit_prompt');
|
||||||
expect(result.content).toContain('You are Qwen Code, an interactive CLI agent');
|
expect(result.content).toContain(
|
||||||
|
'You are Qwen Code, an interactive CLI agent',
|
||||||
|
);
|
||||||
});
|
});
|
||||||
|
|
||||||
it(`should proceed to initialize when ${DEFAULT_CONTEXT_FILENAME} exists but is empty`, async () => {
|
it(`should proceed to initialize when ${DEFAULT_CONTEXT_FILENAME} exists but is empty`, async () => {
|
||||||
|
|||||||
Reference in New Issue
Block a user