From 024b3d3798d6a856fa37ca46bb693c7cf15d3415 Mon Sep 17 00:00:00 2001 From: Jed Mao Date: Mon, 8 Dec 2014 16:18:24 -0600 Subject: [PATCH] Update bower version, readme --- README.md | 10 ++++++++-- bower.json | 2 +- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 65cca1f..97b6352 100644 --- a/README.md +++ b/README.md @@ -102,7 +102,13 @@ A FakeHttp module is available for testing. Here's how you require it: var fakeHttp = require('iso-http/fake'); ``` -Unlike the real iso-http module, the fake one returns a request object (an instance of FakeHttp.Agent), upon which you can run two methods. The `respondWith` method accepts a fake response object: +NOTE: If you're doing browser tests, you'll need to first reference the [iso-http--fake.js file](https://github.com/jedmao/iso-http/blob/master/dist/iso-http--fake.js) in the head section of your test runner's HTML file: + +```html + +``` + +Unlike the real iso-http module, the fake one returns a request object (an instance of FakeHttp.Agent), upon which you can run two methods. The first method is `respondWith` and it accepts a fake response object: ```js it('responds with a fake response', function(done) { @@ -120,7 +126,7 @@ it('responds with a fake response', function(done) { }); ``` -The `rejectWith` method accepts an error object: +The second method, `rejectWith`, accepts an error object: ```js it('rejects with an error', function(done) { diff --git a/bower.json b/bower.json index 6c0bb2e..10894c2 100644 --- a/bower.json +++ b/bower.json @@ -1,6 +1,6 @@ { "name": "iso-http", - "version": "0.0.1", + "version": "0.0.2", "homepage": "https://github.com/jedmao/iso-http", "authors": [ "Jed Mao "