Skip to content

Commit

Permalink
Tests: Add checks that jpg-save and jpg-load exists
Browse files Browse the repository at this point in the history
  • Loading branch information
jonnor committed Sep 23, 2014
1 parent 0dd8ea0 commit 4515c30
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions spec/websocket.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,21 @@ describe 'FBP runtime protocol,', () ->
chai.expect(output.length).to.equal 1
chai.expect(output[0].type).to.equal "buffer"

# TODO: move these checks to
describe 'gegl:jpg-load component', ->
c = 'gegl/jpg-load'
it 'should have a "output" port', ->
output = ui.components[c].outPorts.filter (p) -> p.id == 'output'
chai.expect(output.length).to.equal 1
chai.expect(output[0].type).to.equal "buffer"

describe 'gegl:jpg-save component', ->
c = 'gegl/jpg-save'
it 'should have a "input" buffer port', ->
input = ui.components[c].inPorts.filter (p) -> p.id == 'input'
chai.expect(input.length).to.equal 1
chai.expect(input[0].type).to.equal "buffer"

describe 'gegl/add component', ->
c = 'gegl/add'
it 'should have "input" and "aux" buffer ports', ->
Expand Down

0 comments on commit 4515c30

Please sign in to comment.