Comparing version 0.4.0 to 0.4.1
0.4.1 / 2012-11-14 | ||
================== | ||
* update superagent | ||
0.4.0 / 2012-10-18 | ||
@@ -3,0 +8,0 @@ ================== |
{ | ||
"name": "supertest", | ||
"version": "0.4.0", | ||
"version": "0.4.1", | ||
"description": "Super-agent driven library for testing HTTP servers", | ||
@@ -10,3 +10,3 @@ "main": "index.js", | ||
"dependencies": { | ||
"superagent": "0.9.5", | ||
"superagent": "0.9.10", | ||
"methods": "0.0.1" | ||
@@ -13,0 +13,0 @@ }, |
@@ -81,2 +81,17 @@ # SuperTest | ||
When using supertest with a url instead of passing a server or "app", | ||
you may bind the initial value to prevent redundancy: | ||
```js | ||
request = request.bind(request, 'http://localhost:5555'); | ||
request.get('/').expect(200, function(err){ | ||
console.log(err); | ||
}); | ||
request.get('/').expect('heya', function(err){ | ||
console.log(err); | ||
}); | ||
``` | ||
## API | ||
@@ -83,0 +98,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
18211
129
+ Addedbetter-assert@0.1.0(transitive)
+ Addedcallsite@1.0.0(transitive)
+ Addedemitter-component@0.0.6(transitive)
+ Addedqs@0.5.2(transitive)
+ Addedsuperagent@0.9.10(transitive)
- Removedemitter-component@0.0.5(transitive)
- Removedqs@0.4.2(transitive)
- Removedsuperagent@0.9.5(transitive)
Updatedsuperagent@0.9.10