Skip to content

Commit

Permalink
Re-add hue and saturation tests
Browse files Browse the repository at this point in the history
  • Loading branch information
loilo committed Aug 18, 2019
1 parent 6987742 commit a0f50d2
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions test/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -129,13 +129,21 @@ describe('Basics: blend { r: 250, g: 200, b: 0, a: 0.6 } with { r: 50, g: 150, b

test('hue should return { r: 162, g: 207, b: 49, a: 0.76 }', function() {
assert.deepStrictEqual(

blender.hue(
{ r: 250, g: 200, b: 0, a: 0.6 },
{ r: 50, g: 150, b: 75, a: 0.4 }
),
{ r: 158, g: 207, b: 58, a: 0.76 }
)
})

test('saturation should return { r: 209, g: 182, b: 54, a: 0.76 }', function() {
assert.deepStrictEqual(

blender.saturation(
{ r: 250, g: 200, b: 0, a: 0.6 },
{ r: 50, g: 150, b: 75, a: 0.4 }
),
{ r: 197, g: 188, b: 52, a: 0.76 }
)
})

Expand Down

0 comments on commit a0f50d2

Please sign in to comment.