style: auto-fix lint and format
This commit is contained in:
1 parent
b28beec2c6
commit
cce3e455fa
3 files changed
+8
-3
No files matched your search
@@ -15,7 +15,7 @@ export const ClientBoard = () => {
|
|||||||
|
|
||||||
const fullWidthSortedSections = board.sections
|
const fullWidthSortedSections = board.sections
|
||||||
.filter((section) => section.kind === "empty" || section.kind === "category")
|
.filter((section) => section.kind === "empty" || section.kind === "category")
|
||||||
.sort((sectionA, sectionB) => sectionA.yOffset - sectionB.yOffset);
|
.toSorted((sectionA, sectionB) => sectionA.yOffset - sectionB.yOffset);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<BoardAdvancedFocusProvider>
|
<BoardAdvancedFocusProvider>
|
||||||
|
|||||||
@@ -82,5 +82,5 @@ export const mapPatchMonStats = (data: z.infer<typeof patchmonStatsResponseSchem
|
|||||||
totalOutdatedPackages: data.total_outdated_packages,
|
totalOutdatedPackages: data.total_outdated_packages,
|
||||||
totalRepos: data.total_repos,
|
totalRepos: data.total_repos,
|
||||||
lastUpdated: data.last_updated,
|
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", () => {
|
it("rejects only after every dimension fails", () => {
|
||||||
expect(hasTotalFirewallFailure([failedQuery, failedQuery, failedQuery, failedQuery])).toBe(true);
|
expect(hasTotalFirewallFailure([failedQuery, failedQuery, failedQuery, failedQuery])).toBe(true);
|
||||||
expect(
|
expect(
|
||||||
hasTotalFirewallFailure([failedQuery, failedQuery, failedQuery, { ...failedQuery, data: [{ error: undefined }] }]),
|
hasTotalFirewallFailure([
|
||||||
|
failedQuery,
|
||||||
|
failedQuery,
|
||||||
|
failedQuery,
|
||||||
|
{ ...failedQuery, data: [{ error: undefined }] },
|
||||||
|
]),
|
||||||
).toBe(false);
|
).toBe(false);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user