Socket
Socket
Sign inDemoInstall

supertest

Package Overview
Dependencies
9
Maintainers
1
Versions
69
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.5.0 to 0.5.1

5

History.md
0.5.1 2012-12-07
==================
* fix .expect(status) should assert only status
0.5.0/ 2012-11-28

@@ -3,0 +8,0 @@ ==================

4

lib/test.js

@@ -96,3 +96,3 @@

// body
if ('function' != typeof b) this._bodies.push(b);
if ('function' != typeof b && arguments.length > 1) this._bodies.push(b);
return this;

@@ -152,3 +152,3 @@ }

}
// body

@@ -155,0 +155,0 @@ for (var i = 0; i < bodies.length; i++) {

{
"name": "supertest",
"version": "0.5.0",
"version": "0.5.1",
"description": "Super-agent driven library for testing HTTP servers",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -140,2 +140,17 @@

describe('.expect(status)', function () {
it('should assert only status', function (done) {
var app = express();
app.get('/', function (req, res) {
res.send('hey');
})
request(app)
.get('/')
.expect(200)
.end(done)
})
})
describe('.expect(status, body[, fn])', function(){

@@ -142,0 +157,0 @@ it('should assert the response body and status', function(done){

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc