Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jvanbaarsen committed Jun 14, 2024
1 parent 9d50613 commit 0915c33
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion components/UptimeDot/UptimeDot.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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", () => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ exports[`UptimeMonitor renders without errors 1`] = `
class="c_h-heading focus:outline-none"
>
homepage
 
</button>
</h2>
<p
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ exports[`UptimeMonitors renders without problems 1`] = `
class="c_h-heading focus:outline-none"
>
Always Down
 
</button>
</h2>
<p
Expand Down Expand Up @@ -171,6 +172,7 @@ exports[`UptimeMonitors renders without problems 1`] = `
class="c_h-heading focus:outline-none"
>
blog
 
</button>
</h2>
<p
Expand Down Expand Up @@ -319,6 +321,7 @@ exports[`UptimeMonitors renders without problems 1`] = `
class="c_h-heading focus:outline-none"
>
homepage
 
</button>
</h2>
<p
Expand Down

0 comments on commit 0915c33

Please sign in to comment.