Skip to content

chore: Address TiCS code coverage warnings for publisher utils#5109

Merged
steverydz merged 1 commit intomainfrom
TiCS-code-coverage-publisher-utils
Apr 23, 2025
Merged

chore: Address TiCS code coverage warnings for publisher utils#5109
steverydz merged 1 commit intomainfrom
TiCS-code-coverage-publisher-utils

Conversation

@steverydz
Copy link
Copy Markdown
Contributor

@steverydz steverydz commented Apr 23, 2025

Done

Adds tests for the getListingChanges utility

How to QA

The test-js check should pass

Testing

  • This PR has tests
  • No testing required (explain why):

@webteam-app
Copy link
Copy Markdown

}
});

test("sets public_metrics_blacklist if only territories", () => {
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

[Inclusive naming check] reported by reviewdog 🐶
[warning] blacklist may be insensitive, use denylist, blocklist instead

}),
);

expect(changes.public_metrics_blacklist).toBeDefined();
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

[Inclusive naming check] reported by reviewdog 🐶
[warning] blacklist may be insensitive, use denylist, blocklist instead


expect(changes.public_metrics_blacklist).toBeDefined();

if (changes.public_metrics_blacklist) {
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

[Inclusive naming check] reported by reviewdog 🐶
[warning] blacklist may be insensitive, use denylist, blocklist instead

expect(changes.public_metrics_blacklist).toBeDefined();

if (changes.public_metrics_blacklist) {
expect(changes.public_metrics_blacklist).toHaveLength(1);
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

[Inclusive naming check] reported by reviewdog 🐶
[warning] blacklist may be insensitive, use denylist, blocklist instead


if (changes.public_metrics_blacklist) {
expect(changes.public_metrics_blacklist).toHaveLength(1);
expect(changes.public_metrics_blacklist[0]).toEqual(
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

[Inclusive naming check] reported by reviewdog 🐶
[warning] blacklist may be insensitive, use denylist, blocklist instead

}),
);

expect(changes.public_metrics_blacklist).toBeDefined();
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

[Inclusive naming check] reported by reviewdog 🐶
[warning] blacklist may be insensitive, use denylist, blocklist instead


expect(changes.public_metrics_blacklist).toBeDefined();

if (changes.public_metrics_blacklist) {
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

[Inclusive naming check] reported by reviewdog 🐶
[warning] blacklist may be insensitive, use denylist, blocklist instead

expect(changes.public_metrics_blacklist).toBeDefined();

if (changes.public_metrics_blacklist) {
expect(changes.public_metrics_blacklist).toHaveLength(2);
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

[Inclusive naming check] reported by reviewdog 🐶
[warning] blacklist may be insensitive, use denylist, blocklist instead


if (changes.public_metrics_blacklist) {
expect(changes.public_metrics_blacklist).toHaveLength(2);
expect(changes.public_metrics_blacklist[0]).toEqual(
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

[Inclusive naming check] reported by reviewdog 🐶
[warning] blacklist may be insensitive, use denylist, blocklist instead

expect(changes.public_metrics_blacklist[0]).toEqual(
"installed_base_by_country_percent",
);
expect(changes.public_metrics_blacklist[1]).toEqual(
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

[Inclusive naming check] reported by reviewdog 🐶
[warning] blacklist may be insensitive, use denylist, blocklist instead

@steverydz steverydz merged commit 7f89116 into main Apr 23, 2025
11 of 12 checks passed
@steverydz steverydz deleted the TiCS-code-coverage-publisher-utils branch April 23, 2025 16:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants