Skip to content

Commit f8832a9

Browse files
committed
style(web): convert functions to arrow functions in route-manifest.ts
1 parent a059c25 commit f8832a9

File tree

1 file changed

+5
-9
lines changed

1 file changed

+5
-9
lines changed

apps/web/coverage/route-manifest.ts

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -464,23 +464,19 @@ export const COVERAGE_STATS = {
464464

465465
/**
466466
* Get routes by test tag
467+
* @param tag
467468
*/
468-
export function getRoutesByTag(tag: string): readonly RoutePattern[] {
469-
return ROUTE_MANIFEST.filter((route) =>
469+
export const getRoutesByTag = (tag: string): readonly RoutePattern[] => ROUTE_MANIFEST.filter((route) =>
470470
route.testTags.some((t) => t === tag || t.startsWith(tag))
471471
);
472-
}
473472

474473
/**
475474
* Get routes by entity type
475+
* @param entityType
476476
*/
477-
export function getRoutesByEntityType(entityType: string): readonly RoutePattern[] {
478-
return ROUTE_MANIFEST.filter((route) => route.entityType === entityType);
479-
}
477+
export const getRoutesByEntityType = (entityType: string): readonly RoutePattern[] => ROUTE_MANIFEST.filter((route) => route.entityType === entityType);
480478

481479
/**
482480
* Get routes without coverage
483481
*/
484-
export function getUncoveredRoutes(): readonly RoutePattern[] {
485-
return ROUTE_MANIFEST.filter((route) => !route.hasCoverage);
486-
}
482+
export const getUncoveredRoutes = (): readonly RoutePattern[] => ROUTE_MANIFEST.filter((route) => !route.hasCoverage);

0 commit comments

Comments
 (0)