Skip to content

fix: update functional tests for insertFinalNewline#15

Merged
eugenioenko merged 1 commit into
mainfrom
fix/functional-tests-newline
May 29, 2026
Merged

fix: update functional tests for insertFinalNewline#15
eugenioenko merged 1 commit into
mainfrom
fix/functional-tests-newline

Conversation

@eugenioenko
Copy link
Copy Markdown
Owner

Summary

  • Update 14 file-content assertions across 7 test files to expect trailing \n (from the insertFinalNewline feature shipped in ba892ed)
  • Add new insert-final-newline.test.js with 4 tests verifying the setting works when enabled (default) and disabled via --config

Test plan

  • All 64 functional tests pass (24 LSP skipped)
  • go test ./... passes
  • New tests cover: default newline on save, no newline with insertFinalNewline: false, single-line and multi-line files

🤖 Generated with Claude Code

Saved files now end with a trailing newline by default. Update all file
content assertions to expect the trailing \n, and add dedicated tests
verifying the insertFinalNewline setting (enabled and disabled).

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@eugenioenko eugenioenko merged commit 1dd26f1 into main May 29, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant