                 err.should.deep.equal error
                 done()
 
-        it 'When a successful authorized request is made then 200 is returned'
-        #(done) ->
-            #sharing.answer req, res
-            #res.on 'send', ->
-                #res.statusCode.should.equal 200
-                #done()
-
         it 'When an unauthorized request is made then an error is returned',
         (done) ->
             stubIsTargetAuthenticated.restore() # cancel hook stub

httpMocks = require 'node-mocks-http'
events    = require 'events'

sharing      = rewire "#{helpers.prefix}server/controllers/sharing"
remoteAccess = require "#{helpers.prefix}server/lib/remote_access"

client = helpers.getClient()

                err.should.deep.equal error
                done()


    describe 'revokeTarget module', ->

