Skip to content

Commit 2d4c0f7

Browse files
authored
Merge pull request #115 from ISISComputingGroup/no_white_text_on_light_green_background_please
2 parents 0579f08 + 3935293 commit 2d4c0f7

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

app/components/getRunstateColours.test.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,12 @@ test("getForegroundColor when runstate requires black text returns black text",
1515
expect(result).toBe("text-black");
1616
});
1717

18+
test("getForegroundColor when runstate requires black text returns black text", () => {
19+
const runstate = "BEGINNING";
20+
const result = getForegroundColour(runstate);
21+
expect(result).toBe("text-black");
22+
});
23+
1824
test("getStatusColour when runstate unknown returns expected colour", () => {
1925
const result = getStatusColour("UNKNOWN");
2026
expect(result).toBe("bg-[#F08080]");

app/components/getRunstateColours.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ export function getForegroundColour(status: string): string {
1919
"VETOING",
2020
"SETUP",
2121
"WAITING",
22+
"BEGINNING",
23+
"ENDING",
2224
];
2325
return blackTextRunstates.includes(status) ? "text-black" : "text-white";
2426
}

0 commit comments

Comments
 (0)