       id = testutils.getCanvasWithImageNoShift inSrc, (image) ->
         inImage.beginGroup id
         inImage.send image
-        inImage.endGroup()+        inImage.endGroup()

    outImage = noflo.internalSocket.createSocket()
    c.inPorts.canvas.attach inImage
    c.outPorts.canvas.attach outImage
 
  describe 'when instantiated', ->
    it 'should have one input port', ->
      chai.expect(c.inPorts.canvas).to.be.an 'object'
    it 'should have one output port', ->
      chai.expect(c.outPorts.canvas).to.be.an 'object'
 
  describe 'with file system image', ->
    it 'should make an image with a dark vignette', (done) ->
      id = null

else
  ApplyVignette = require 'noflo-image/components/ApplyVignette.js'
  testutils = require 'noflo-image/spec/testutils.js'

describe 'ApplyVignette component', ->

  c = null
  inImage = null
  outImage = null
