style: auto-fix lint and format

This commit is contained in:
ajnart authored and ajnart committed 2026-08-13 19:54:30 +02:00
1 parent 777bbd89a1
commit 010ba45468
2 files changed
+7 -2

No files matched your search

@@ -82,5 +82,5 @@ export const mapPatchMonStats = (data: z.infer<typeof patchmonStatsResponseSchem
totalOutdatedPackages: data.total_outdated_packages,
totalRepos: data.total_repos,
lastUpdated: data.last_updated,
osDistribution: [...data.os_distribution].map(mapOsDistributionEntry).sort((a, b) => b.count - a.count),
osDistribution: [...data.os_distribution].map(mapOsDistributionEntry).toSorted((a, b) => b.count - a.count),
});
@@ -13,7 +13,12 @@ describe("firewall failure state", () => {
it("rejects only after every dimension fails", () => {
expect(hasTotalFirewallFailure([failedQuery, failedQuery, failedQuery, failedQuery])).toBe(true);
expect(
hasTotalFirewallFailure([failedQuery, failedQuery, failedQuery, { ...failedQuery, data: [{ error: undefined }] }]),
hasTotalFirewallFailure([
failedQuery,
failedQuery,
failedQuery,
{ ...failedQuery, data: [{ error: undefined }] },
]),
).toBe(false);
});