Fix typecheck error: use non-null assertion after expect(pair).toBeDefined()
Local Build and Deploy / deploy (push) Successful in 59s

This commit is contained in:
openhands committed 2026-07-14 16:12:01 +02:00
1 parent c7c4617f2a
commit 90d249e50e
1 file changed
+1 -1
+1 -1
View File
@@ -171,7 +171,7 @@ describe("derivePublicForegrounds", () => {
);
expect(pair, `missing ${name}`).toBeDefined();
expect(
contrastRatio(pair?.foreground, pair?.background),
contrastRatio(pair!.foreground, pair!.background),
name,
).toBeGreaterThanOrEqual(4.5);
}