Skip to content

Commit

Permalink
cleaned tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Gregor Aisch committed Jun 1, 2015
1 parent 57c59b6 commit 565bb06
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 5 deletions.
3 changes: 0 additions & 3 deletions test/blend-test.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,6 @@ vows = require 'vows'
assert = require 'assert'
chroma = require '../chroma'


console.log 'blendmodes'

vows
.describe('Testing blend modes')
.addBatch
Expand Down
3 changes: 2 additions & 1 deletion test/colors-test.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ vows
'numoutput': -> (topic) -> assert.equal topic.num(), 0xff0000

'num color':
topic: [chroma(0xff0000), chroma(0x000000), chroma(0xffffff), chroma(0x31ff98)]
topic: [chroma(0xff0000), chroma(0x000000), chroma(0xffffff), chroma(0x31ff98), chroma('red')]
'hex': (topic) -> assert.equal topic[0].hex(), '#ff0000'
'num': (topic) -> assert.equal topic[0].num(), 0xff0000
'hex-black': (topic) -> assert.equal topic[1].hex(), '#000000'
Expand All @@ -150,6 +150,7 @@ vows
'num-white': (topic) -> assert.equal topic[2].num(), 0xffffff
'hex-rand': (topic) -> assert.equal topic[3].hex(), '#31ff98'
'num-rand': (topic) -> assert.equal topic[3].num(), 0x31ff98
'rum-red': (topic) -> assert.equal topic[4].num(), 0xff0000

'interpolate in num':
topic: chroma.interpolate chroma.num(0xffffe0), chroma.num(0x102180), 0.5, 'num'
Expand Down
1 change: 0 additions & 1 deletion test/lcorrection-test.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@ vows
topic:
f: chroma.scale(['white', 'yellow', 'red', 'black']).domain([0,20,40,60,80,100]).mode('lab').correctLightness(true)
'center L is 50': (topic) ->
console.log '---'
assert.equal Math.round(topic.f(50).lab()[0]), 50

.export(module)

0 comments on commit 565bb06

Please sign in to comment.