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

pactum

Package Overview
Dependencies
Maintainers
1
Versions
112
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pactum - npm Package Compare versions

Comparing version 3.1.12 to 3.1.13

4

package.json
{
"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 { }
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