This commit is contained in:
shamoon
2026-02-20 20:25:34 -08:00
parent 862c5d9f38
commit 614a87d768
117 changed files with 124 additions and 812 deletions
+1 -7
View File
@@ -4,16 +4,10 @@ import { screen, waitFor } from "@testing-library/react";
import { afterEach, beforeEach, describe, expect, it, vi } from "vitest";
import { renderWithProviders } from "test-utils/render-with-providers";
import { findServiceBlockByLabel } from "test-utils/widget-assertions";
import { expectBlockValue } from "test-utils/widget-assertions";
import Component from "./component";
function expectBlockValue(container, label, value) {
const block = findServiceBlockByLabel(container, label);
expect(block, `missing block for ${label}`).toBeTruthy();
expect(block.textContent).toContain(String(value));
}
describe("widgets/uptimerobot/component", () => {
const originalFetch = globalThis.fetch;