title: nodejs/mocha/nock - mocking an entire html response
body: <p>How can I mock an entire HTML body response for my tests?</p>
  
  <p>I'm using nodejs/mocha/nock.</p>
  
  <p>With nock I can mock JSON responds just fine, for example:</p>
  
  <pre><code>nock('http://myapp.iriscouch.com')
                  .get('/users/1')
                  .reply(200, {_id: "123ABC", _rev: "946B7D1C", username: 'pgte'});
  </code></pre>
  
  <p>I used <code>curl -o</code> to fetch the html I want for the mock, so I have it already in a file - but I don't see how can I pass an HTML file to nock (or something else).</p>
  
  <p>Thanks.</p>