mirror of
https://github.com/OneUptime/oneuptime.git
synced 2026-04-06 00:32:12 +02:00
fix: update resource grouping output to use <br/> for HTML rendering
This commit is contained in:
@@ -84,6 +84,6 @@ export default class StatusPageResourceUtil {
|
||||
}
|
||||
}
|
||||
|
||||
return formattedGroups.join("\n") || defaultValue;
|
||||
return formattedGroups.join("<br/>") || defaultValue;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -43,11 +43,11 @@ describe("StatusPageResourceUtil", () => {
|
||||
StatusPageResourceUtil.getResourcesGroupedByGroupName(resources);
|
||||
/*
|
||||
* Groups should be formatted as "GroupName: Resource1, Resource2"
|
||||
* Multiple groups separated by newlines
|
||||
* Multiple groups separated by <br/> for HTML rendering
|
||||
*/
|
||||
expect(result).toContain("EU: Infrastructure, Website");
|
||||
expect(result).toContain("UK: Infrastructure, API");
|
||||
expect(result).toContain("\n");
|
||||
expect(result).toContain("<br/>");
|
||||
});
|
||||
|
||||
it("should handle mixed grouped and ungrouped resources", () => {
|
||||
|
||||
Reference in New Issue
Block a user