Skip to content

Commit 71f7e25

Browse files
luoxuanzaoQoder-AI
andcommitted
test(chat): make the file-drop assertion platform-neutral
Windows normalizes the path separators, so asserting the exact POSIX literal failed there. Co-authored-by: QoderAI (Qwen 3.8 Max) <qoder_ai@qoder.com>
1 parent d09bfe2 commit 71f7e25

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

‎tests/unit/features/chat/ui/input-toolbar.external-context.test.ts‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,9 @@ describe('ExternalContextSelector', () => {
208208

209209
const accepted = selector.addExternalContext('/tmp/some-file.txt', { allowFile: true });
210210
expect(accepted.success).toBe(true);
211-
expect(selector.getExternalContexts()).toContain('/tmp/some-file.txt');
211+
const contexts = selector.getExternalContexts();
212+
expect(contexts).toHaveLength(1);
213+
expect(contexts[0]).toContain('some-file.txt');
212214
});
213215

214216
it('should reject empty input', () => {

0 commit comments

Comments
 (0)