Skip to content

Commit

Permalink
test(Color): fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
tmillr committed Jul 26, 2024
1 parent 1a3f3b7 commit 3a0f796
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions test/github-theme/color_spec.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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])
Expand Down

0 comments on commit 3a0f796

Please sign in to comment.