Skip to content

Commit

Permalink
add test_get_tints_from_hex_color
Browse files Browse the repository at this point in the history
  • Loading branch information
milwad-dev committed Jan 28, 2025
1 parent f84f56c commit 85e3c28
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions tests/GenerateHintShadeTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,26 @@ public function test_get_shades_from_hex_color(): void
'#000000',
], $colors);
}

/**
* Test get tints from hex color.
*/
public function test_get_tints_from_hex_color(): void
{
$colors = ColorService::generateTints('1363df', 10);

$this->assertIsArray($colors);
$this->assertEquals([
'#2b73e2',
'#4282e5',
'#5a92e9',
'#71a1ec',
'#89b1ef',
'#a1c1f2',
'#b8d0f5',
'#d0e0f9',
'#e7effc',
'#ffffff',
], $colors);
}
}

0 comments on commit 85e3c28

Please # to comment.