Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Drop trailing whitespace from test/unit/api_spec.js #19100

Merged
merged 1 commit into from
Nov 25, 2024

Conversation

Rob--W
Copy link
Member

@Rob--W Rob--W commented Nov 24, 2024

test/unit/api_spec.js is the only JS file in the tree with trailing whitespace. Because trim_trailing_whitespace = true in .editorconfig, any editor supporting EditorConfig would trim whitespace when the file is changed, which results in test failures (e.g. at #19074 (comment)).

This commit fixes the issue by trimming the trailing whitespace and adjusting the test expectations.

The test was originally introduced in #16559 and I don't expect any impact on the validity of the test.

test/unit/api_spec.js is the only JS file in the tree with trailing
whitespace. Because `trim_trailing_whitespace = true` in .editorconfig,
any editor supporting EditorConfig would trim whitespace when the file
is changed, which results in test failures.

This commit fixes the issue by trimming the trailing whitespace and
adjusting the test expectations.
Copy link
Contributor

@calixteman calixteman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you.

@calixteman calixteman merged commit 079eb24 into mozilla:master Nov 25, 2024
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants