fix: resolve failing CI checks
This commit is contained in:
1 parent
de4c528d55
commit
55184724d0
7 files changed
+41
-15
No files matched your search
@@ -20,7 +20,10 @@ export interface Incident {
|
||||
updatedAt: string;
|
||||
}
|
||||
|
||||
export type PublicIncident = Pick<Incident, "id" | "monitorId" | "status" | "startTime" | "endTime" | "resolutionType" | "message" | "statusCode" | "createdAt">;
|
||||
export type PublicIncident = Pick<
|
||||
Incident,
|
||||
"id" | "monitorId" | "status" | "startTime" | "endTime" | "resolutionType" | "message" | "statusCode" | "createdAt"
|
||||
>;
|
||||
|
||||
export interface IncidentSummaryTopMonitor {
|
||||
monitorId: string;
|
||||
|
||||
@@ -117,7 +117,6 @@ export class StatusPageService implements IStatusPageService {
|
||||
createdAt: incident.createdAt,
|
||||
});
|
||||
|
||||
|
||||
createStatusPage = async (
|
||||
userId: string,
|
||||
teamId: string,
|
||||
|
||||
@@ -449,7 +449,7 @@ describe("StatusPageService", () => {
|
||||
it("fetches and sanitizes incidents successfully", async () => {
|
||||
const { service, repo, incidentsRepo } = createService();
|
||||
(repo.findByUrl as jest.Mock).mockResolvedValue(publishedPage());
|
||||
|
||||
|
||||
const mockIncident = {
|
||||
id: "inc-1",
|
||||
monitorId: "mon-1",
|
||||
@@ -466,7 +466,7 @@ describe("StatusPageService", () => {
|
||||
(incidentsRepo.findByMonitorIdAndDate as jest.Mock).mockResolvedValue([mockIncident]);
|
||||
|
||||
const results = await service.getPublicMonitorIncidents("my-status-page", "mon-1", "2026-08-01");
|
||||
|
||||
|
||||
expect(incidentsRepo.findByMonitorIdAndDate).toHaveBeenCalled();
|
||||
expect(results).toHaveLength(1);
|
||||
expect(results[0]).toHaveProperty("id", "inc-1");
|
||||
|
||||
Reference in new issue
Block a user