 			polling.registerPollingChannel testChannel, ->
 				agendaSpy.cancel.calledOnce.should.be.true
 				agendaSpy.cancel.getCall(0).args[0].should.eql({ name: 'polling-job-' + testChannel._id })
-
 				done()
 
 		it 'should set the polling job', (done) ->

			polling.registerPollingChannel testChannel, ->
				agendaSpy.define.calledOnce.should.be.true
				agendaSpy.define.getCall(0).args[0].should.eql('polling-job-' + testChannel._id)

				done()

		it 'should cancel a job if it already exists', (done) ->

			polling.setupAgenda agendaSpy
			polling.registerPollingChannel testChannel2, (err) ->
				err.should.exist
				done()

	describe 'removePollingChannel', ->
