@bonniernews/httptest
Advanced tools
Comparing version 1.0.0 to 1.1.0
@@ -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) { |
{ | ||
"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/>"); | ||
}); | ||
}); | ||
``` |
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
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
11814
256
81
2