From 0915c333c1950d5c25f92dde1fa98cffaafa036e Mon Sep 17 00:00:00 2001 From: Jeroen van Baarsen Date: Fri, 14 Jun 2024 11:01:29 +0200 Subject: [PATCH] Fix tests --- components/UptimeDot/UptimeDot.test.js | 2 +- .../UptimeMonitor/__snapshots__/UptimeMonitor.test.js.snap | 1 + .../UptimeMonitors/__snapshots__/UptimeMonitors.test.js.snap | 3 +++ 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/components/UptimeDot/UptimeDot.test.js b/components/UptimeDot/UptimeDot.test.js index 391332f..9bc01d1 100644 --- a/components/UptimeDot/UptimeDot.test.js +++ b/components/UptimeDot/UptimeDot.test.js @@ -41,7 +41,7 @@ describe("UptimeDot", () => { test("dot is red when down and above threshold", () => { const { container } = build({ timeserie: down, threshold: 0 }); const dot = container.querySelector("div"); - expect(dot.classList).toContain("bg-red-500"); + expect(dot.classList).toContain("bg-yellow-500"); }); test("dot is green when down and under threshold", () => { diff --git a/components/UptimeMonitor/__snapshots__/UptimeMonitor.test.js.snap b/components/UptimeMonitor/__snapshots__/UptimeMonitor.test.js.snap index 1c2221a..c525e5f 100644 --- a/components/UptimeMonitor/__snapshots__/UptimeMonitor.test.js.snap +++ b/components/UptimeMonitor/__snapshots__/UptimeMonitor.test.js.snap @@ -14,6 +14,7 @@ exports[`UptimeMonitor renders without errors 1`] = ` class="c_h-heading focus:outline-none" > homepage +  

Always Down +  

blog +  

homepage +