diff options
Diffstat (limited to 'spec')
-rw-r--r-- | spec/spec/color.js | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/spec/spec/color.js b/spec/spec/color.js index 526b544..eec3f48 100644 --- a/spec/spec/color.js +++ b/spec/spec/color.js @@ -60,6 +60,14 @@ describe('Color', function() { expect(morphed.g).toBe(51) expect(morphed.b).toBe(127) }) + + it('morphes color to 1 with higher values', function() { + var destination = new SVG.Color('#fff') + var morphed = color.morph(destination).at(2) + expect(morphed.r).toBe(255) + expect(morphed.g).toBe(255) + expect(morphed.b).toBe(255) + }) }) }) |