Skip to content

Commit e6f2a82

Browse files
committed
Correct the result order and file references in the clipboard-parser test for duplicate paths in empty code blocks
1 parent ad4c531 commit e6f2a82

3 files changed

Lines changed: 5 additions & 5 deletions

File tree

‎packages/vscode/src/commands/apply-chat-response-command/utils/clipboard-parser/clipboard-parser.spec.ts‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -983,13 +983,13 @@ describe('clipboard-parser', () => {
983983

984984
expect(result).toHaveLength(2)
985985
expect(result[0]).toMatchObject({
986-
type: 'text',
987-
content: load_test_case_file('standard', test_case, '1-text.txt')
988-
})
989-
expect(result[1]).toMatchObject({
990986
type: 'file',
991987
file_path: 'src/hello-world.ts',
992-
content: load_test_case_file('standard', test_case, '2-file.txt')
988+
content: load_test_case_file('standard', test_case, '1-file.txt')
989+
})
990+
expect(result[1]).toMatchObject({
991+
type: 'text',
992+
content: load_test_case_file('standard', test_case, '2-text.txt')
993993
})
994994
})
995995

packages/vscode/src/commands/apply-chat-response-command/utils/clipboard-parser/test-cases/standard/path-duplicated-in-empty-code-block/2-file.txt renamed to packages/vscode/src/commands/apply-chat-response-command/utils/clipboard-parser/test-cases/standard/path-duplicated-in-empty-code-block/1-file.txt

File renamed without changes.

packages/vscode/src/commands/apply-chat-response-command/utils/clipboard-parser/test-cases/standard/path-duplicated-in-empty-code-block/1-text.txt renamed to packages/vscode/src/commands/apply-chat-response-command/utils/clipboard-parser/test-cases/standard/path-duplicated-in-empty-code-block/2-text.txt

File renamed without changes.

0 commit comments

Comments
 (0)