title: Mocking with Nock, DELETE
body: <p>How would I mock a delete with nock</p>
  
  <p>this is what I have done so far:</p>
  
  <pre><code>var nock = require('nock');
  var request = require('supertest')("http://localhost:8080");
  var expect = require('chai').expect;
  describe('Mocked tests for server components', function(){
  
  var mockRequest = nock('http://localhost:8080');
  it('Should Delete /user/removeuserskills', function(req, res){
      mockRequest
      .delete('/user/removeuserskills',{
        'email':'Johny@gmail.com',
        'user_skill':'accoutant'
      })
      .reply(200,{
       'status':200,
       'message': '200: Successfully deleted skill'
        });
      request
      .delete('/user/removeuserskills')
      .end(function(err, res){
        expect(res.body.status).to.equal(200);
      });
  
    });
  });
  </code></pre>
  
  <p>I have trouble demonstrating how I would first add that user with that skill and then delete it. </p>
  
  <p>Right now with this code, I get an undefined body. </p>
  
  <p>EDIT:</p>
  
  <p>Actually I am getting </p>
  
  <pre><code>{ Error: Nock: No match for request:
  
   { method:"DELETE", 
     url: "http://localhost:8080/user/removeuserskills"
   }
  }
  </code></pre>