Skip to content

Commit

Permalink
removed client side debug dependency and documented how to use for cl…
Browse files Browse the repository at this point in the history
…ient side tests
  • Loading branch information
wheresrhys committed May 31, 2015
1 parent c14ef40 commit 6fa4f86
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@ Mock http requests made using fetch (or isomorphic-fetch)
- fetch-mock doesn't declare `fetch` or `Promise` as dependencies; as you're testing `fetch` it's assumed you're already taking care of these globals
- fetch-mock uses [npm debug](https://www.npmjs.com/package/debug). To output useful messages for debugging set the environment variable `DEBUG=fetch-mock`
- If you prefer documentation by example skip to the bottom of this README

- To use fetch-mock on the server simply `npm install fetch-mock` and `require('fetch-mock)`. In the browser either
- use browserify + debowerify and both `npm install fetch-mock` and `bower install fetch-mock`, then use `require('fetch-mock)`
- use browserify and `npm install fetch-mock` and `require('fetch-mock/client)`

## API

Expand Down
4 changes: 1 addition & 3 deletions bower.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,7 @@
"spy"
],
"license": "MIT",
"dependencies": {
"debug": "^2.2.0"
},
"dependencies": {},
"devDependencies": {
"fetch": "~0.6.0"
}
Expand Down

0 comments on commit 6fa4f86

Please sign in to comment.