From 3a0f796f1bef493aee9478b37a4a5a5a169fcb4c Mon Sep 17 00:00:00 2001 From: Tyler Miller Date: Fri, 26 Jul 2024 08:15:45 -0700 Subject: [PATCH] test(Color): fix test --- test/github-theme/color_spec.lua | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/test/github-theme/color_spec.lua b/test/github-theme/color_spec.lua index 973a0b3..5878220 100644 --- a/test/github-theme/color_spec.lua +++ b/test/github-theme/color_spec.lua @@ -132,10 +132,8 @@ describe('Color', function() end) it('should be idempotent', function() - local orig = Color(ex.rgba) - orig.alpha = 0.5 + local orig = Color(0x12345630) local new = Color(orig --[[@as any]]) - for _, c in ipairs({ orig, new }) do for _, k in ipairs({ 'WHITE', 'BLACK', 'BG' }) do rawset(c, k, c[k])