mirror of
https://github.com/appleboy/drone-discord.git
synced 2026-06-04 10:23:47 +08:00
test: update color conversion tests for new calculation logic
- Update expected output values in color conversion tests to reflect new color calculation logic Signed-off-by: appleboy <appleboy.tw@gmail.com>
This commit is contained in:
+2
-2
@@ -116,8 +116,8 @@ func TestColorConversion(t *testing.T) {
|
|||||||
expectedFall int
|
expectedFall int
|
||||||
}{
|
}{
|
||||||
{"valid hex", "#ffaa00", 16755200, "success", 1752220},
|
{"valid hex", "#ffaa00", 16755200, "success", 1752220},
|
||||||
{"invalid hex", "not-a-hex", 0, "failure", 16724530},
|
{"invalid hex", "not-a-hex", 16724530, "failure", 16724530},
|
||||||
{"status success", "", 0, "success", 1752220},
|
{"status success", "", 0, "success", 1754624},
|
||||||
{"status failure", "", 0, "failure", 16724530},
|
{"status failure", "", 0, "failure", 16724530},
|
||||||
{"status killed", "", 0, "killed", 16724530},
|
{"status killed", "", 0, "killed", 16724530},
|
||||||
{"status default", "", 0, "running", 16767280},
|
{"status default", "", 0, "running", 16767280},
|
||||||
|
|||||||
Reference in New Issue
Block a user