Skip to content

Commit 4d9917d

Browse files
committed
Rename parser test case directories for clarity and update corresponding spec references
- revert file name shortening [Commit] ├── apps │ └── editor │ └── src │ └── commands │ └── apply-response-command │ └── utils │ └── response-parser │ └── parsers │ ├── diff-parser │ │ └── test │ │ ├── cases │ │ │ └── multiple-files-with-git-headers-separate-markdown-blocks │ │ │ ├── 1-file.txt │ │ │ ├── 2-file.txt │ │ │ └── multiple-files-with-git-headers-separate-markdown-blocks.txt │ │ └── diff-parser.spec.ts │ └── standard-parser │ └── test │ ├── cases │ │ └── path-in-backticks-comment-with-intermediate-text │ │ ├── 1-text.txt │ │ ├── 2-file.txt │ │ └── path-in-backticks-comment-with-intermediate-text.txt │ └── standard-parser.spec.ts └── packages └── shared └── src └── utils └── simplify-prompt-symbols └── simplify-prompt-symbols.ts
1 parent 4debd10 commit 4d9917d

8 files changed

Lines changed: 2 additions & 2 deletions

File tree

apps/editor/src/commands/apply-response-command/utils/response-parser/parsers/diff-parser/test/cases/multi-files-git-sep-blocks/1-file.txt renamed to apps/editor/src/commands/apply-response-command/utils/response-parser/parsers/diff-parser/test/cases/multiple-files-with-git-headers-separate-markdown-blocks/1-file.txt

File renamed without changes.

apps/editor/src/commands/apply-response-command/utils/response-parser/parsers/diff-parser/test/cases/multi-files-git-sep-blocks/2-file.txt renamed to apps/editor/src/commands/apply-response-command/utils/response-parser/parsers/diff-parser/test/cases/multiple-files-with-git-headers-separate-markdown-blocks/2-file.txt

File renamed without changes.

apps/editor/src/commands/apply-response-command/utils/response-parser/parsers/diff-parser/test/cases/multi-files-git-sep-blocks/multi-files-git-sep-blocks.txt renamed to apps/editor/src/commands/apply-response-command/utils/response-parser/parsers/diff-parser/test/cases/multiple-files-with-git-headers-separate-markdown-blocks/multiple-files-with-git-headers-separate-markdown-blocks.txt

File renamed without changes.

‎apps/editor/src/commands/apply-response-command/utils/response-parser/parsers/diff-parser/test/diff-parser.spec.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ describe('diff-parser', () => {
195195

196196
it('parses multiple diffs with git headers each in their own markdown code block', () => {
197197
const test_case =
198-
'multi-files-git-sep-blocks'
198+
'multiple-files-with-git-headers-separate-markdown-blocks'
199199
const text = load_test_case_file(test_case, `${test_case}.txt`)
200200
const result = parse_response({
201201
response: text,

apps/editor/src/commands/apply-response-command/utils/response-parser/parsers/standard-parser/test/cases/path-backticks-comment-text/1-text.txt renamed to apps/editor/src/commands/apply-response-command/utils/response-parser/parsers/standard-parser/test/cases/path-in-backticks-comment-with-intermediate-text/1-text.txt

File renamed without changes.

apps/editor/src/commands/apply-response-command/utils/response-parser/parsers/standard-parser/test/cases/path-backticks-comment-text/2-file.txt renamed to apps/editor/src/commands/apply-response-command/utils/response-parser/parsers/standard-parser/test/cases/path-in-backticks-comment-with-intermediate-text/2-file.txt

File renamed without changes.

apps/editor/src/commands/apply-response-command/utils/response-parser/parsers/standard-parser/test/cases/path-backticks-comment-text/path-backticks-comment-text.txt renamed to apps/editor/src/commands/apply-response-command/utils/response-parser/parsers/standard-parser/test/cases/path-in-backticks-comment-with-intermediate-text/path-in-backticks-comment-with-intermediate-text.txt

File renamed without changes.

‎apps/editor/src/commands/apply-response-command/utils/response-parser/parsers/standard-parser/test/standard-parser.spec.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ describe('standard-parser', () => {
209209
})
210210

211211
it('extracts file path from commented backticks even with intermediate text before code block', () => {
212-
const test_case = 'path-backticks-comment-text'
212+
const test_case = 'path-in-backticks-comment-with-intermediate-text'
213213
const text = load_test_case_file(test_case, `${test_case}.txt`)
214214
const result = parse_response({
215215
response: text,

0 commit comments

Comments
 (0)