Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@bonniernews/httptest

Package Overview
Dependencies
Maintainers
10
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@bonniernews/httptest - npm Package Compare versions

Comparing version 1.0.0 to 1.1.0

4

CHANGELOG.md

@@ -11,2 +11,6 @@ Changelog

## [1.1.0] - 2022-04-13
### Added
- expect response using function
## [1.0.0] - 2022-03-15

@@ -13,0 +17,0 @@

@@ -106,2 +106,5 @@ "use strict";

break;
case "function":
this._asserts.push({ fn: args[0], args: [] });
break;
default: {

@@ -108,0 +111,0 @@ if (args.length === 1) {

4

package.json
{
"name": "@bonniernews/httptest",
"version": "1.0.0",
"version": "1.1.0",
"description": "",

@@ -37,3 +37,3 @@ "main": "index.js",

"eslint": "^8.10.0",
"eslint-config-exp": "^0.1.0",
"eslint-config-exp": "^0.2.0",
"express": "^4.17.3",

@@ -40,0 +40,0 @@ "mocha": "^9.2.1",

@@ -71,2 +71,11 @@ HTTP Test

});
it("ok if body matches string", () => {
return request(app)
.get("/")
.expect(200)
.expect((res) => {
expect(res.text).to.equal("<html/>");
});
});
```
SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc