diff --git a/CHANGELOG.md b/CHANGELOG.md index 6381fac4..cf41563f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,8 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/) and this project adheres to [Semantic Versioning](http://semver.org/). ## [Unreleased] +### Added +- [JavaScript] Trim comment trailing whitespace and introduce space after comment hashtag ([#75](https://github.com/cucumber/gherkin-utils/pull/75)) ## [9.0.0] - 2024-03-26 ### Changed diff --git a/javascript/test/prettyTest.ts b/javascript/test/prettyTest.ts index 73f8347c..41ad2ace 100644 --- a/javascript/test/prettyTest.ts +++ b/javascript/test/prettyTest.ts @@ -302,7 +302,7 @@ Feature: hello it('should retain spaces between hashtag and text', () => { assert.deepStrictEqual(prettyComment('# text'), '# text') }) - it('inline hashtag should be ignored', () => { + it('should not introduce space after inline hashtag', () => { assert.deepStrictEqual(prettyComment('number #1'), 'number #1') }) })