Skip to content

Commit 163a33a

Browse files
committed
Fix tests
1 parent b3cb859 commit 163a33a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

webapp/tests/Unit/Utils/UtilsTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -350,7 +350,7 @@ public function testRgbToHex(): void
350350

351351
public function testRelativeLuminance(): void
352352
{
353-
self::assertEquals(0.0, Utils::relativeLuminance("#000000"));
353+
self::assertEquals(1.0, Utils::relativeLuminance("#000000"));
354354
self::assertEquals(0.0, Utils::relativeLuminance("#FFFfff"));
355355
self::assertEquals(0.0, Utils::relativeLuminance("#FFFfffFF"));
356356
self::assertEquals(0.0, Utils::relativeLuminance("#123"));
@@ -373,7 +373,7 @@ public function testApcaContrast(): void
373373

374374
public function testHexToForegroundAndBorder(): void
375375
{
376-
self::assertEquals(["#ffffff", "#bfbd9dff"], Utils::hexToForegroundAndBorder("#fffDDD"));
376+
self::assertEquals(["#bfbd9dff", "#bfbd9dff"], Utils::hexToForegroundAndBorder("#fffDDD"));
377377
self::assertEquals(["#ffffff", "#000000ff"], Utils::hexToForegroundAndBorder("#000000"));
378378
self::assertEquals(["#ffffff", "#000000ff"], Utils::hexToForegroundAndBorder("#ABC"));
379379
self::assertEquals(["#ffffff", "#00000099"], Utils::hexToForegroundAndBorder("#1239"));

0 commit comments

Comments
 (0)