Comparing version 3.1.12 to 3.1.13
{ | ||
"name": "pactum", | ||
"version": "3.1.12", | ||
"version": "3.1.13", | ||
"description": "REST API Testing Tool for all levels in a Test Pyramid", | ||
@@ -70,3 +70,3 @@ "main": "./src/index.js", | ||
"openapi-fuzzer-core": "^1.0.6", | ||
"pactum-matchers": "^1.1.1", | ||
"pactum-matchers": "^1.1.2", | ||
"parse-graphql": "^1.0.0", | ||
@@ -73,0 +73,0 @@ "phin": "^3.6.0", |
@@ -89,6 +89,6 @@ <span align="center"> | ||
```js | ||
const pactum = require('pactum'); | ||
const { spec } = require('pactum'); | ||
it('should be a teapot', async () => { | ||
await pactum.spec() | ||
await spec() | ||
.get('http://httpbin.org/status/418') | ||
@@ -99,3 +99,3 @@ .expectStatus(418); | ||
it('should save a new user', async () => { | ||
await pactum.spec() | ||
await spec() | ||
.post('https://jsonplaceholder.typicode.com/users') | ||
@@ -102,0 +102,0 @@ .withHeaders('Authorization', 'Basic xxxx') |
@@ -113,3 +113,3 @@ import { RequestOptions, IncomingMessage } from 'http'; | ||
/** | ||
* replaces path params in the request url | ||
* replaces path params in the request url | ||
* @see https://pactumjs.github.io/api/requests/withPathParams.html | ||
@@ -362,5 +362,5 @@ */ | ||
*/ | ||
returns(handlerName: string): Spec; | ||
returns(path: string): Spec; | ||
returns(handler: CaptureHandlerFunction): Spec; | ||
returns<T = Spec>(handlerName: string): T; | ||
returns<T = Spec>(path: string): T; | ||
returns<T = Spec>(handler: CaptureHandlerFunction): T; | ||
@@ -422,2 +422,2 @@ /** | ||
declare namespace Spec { } | ||
declare namespace Spec { } |
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
161128
4829
Updatedpactum-matchers@^1.1.2