Commit 95c8969
committed
fix(test): Make TC-400 respect document EOL setting for cross-platform compatibility
Windows uses CRLF while Unix uses LF. The test was hardcoding LF expectation,
causing it to fail on Windows in GitHub Actions.
Fix: Read document.eol property (set by VSCode based on files.eol preference)
and build expected output accordingly, matching ImportManager's behavior.
This respects user's files.eol setting preference:
- 'auto' (default): Detects from file content
- '\n': Force LF
- '\r\n': Force CRLF1 parent 31af37d commit 95c8969
2 files changed
Lines changed: 8 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
31 | | - | |
| 31 | + | |
| 32 | + | |
32 | 33 | | |
33 | 34 | | |
34 | 35 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| |||
645 | 645 | | |
646 | 646 | | |
647 | 647 | | |
648 | | - | |
649 | 648 | | |
650 | 649 | | |
651 | 650 | | |
| 651 | + | |
| 652 | + | |
| 653 | + | |
| 654 | + | |
| 655 | + | |
652 | 656 | | |
653 | 657 | | |
654 | 658 | | |
| |||
0 commit comments