assert-request
Advanced tools
Comparing version 1.0.0 to 1.0.1
{ | ||
"name": "assert-request", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "Assert responses to HTTP requests", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
@@ -26,8 +26,6 @@ # Assert Request | ||
it('should return the correct JSON', function () { | ||
return request('/api', function () { | ||
return request.post('/api') | ||
.type('application/json') | ||
.status(200) | ||
.json(json => json.foo && json.bar); | ||
}); | ||
return request.post('/api') | ||
.type('application/json') | ||
.status(200) | ||
.json(json => json.foo && json.bar); | ||
}); | ||
@@ -34,0 +32,0 @@ }); |
24520
105