Security News
RubyGems.org Adds New Maintainer Role
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.
chai-postman
Advanced tools
Chai plugin to assert on Postman Collections
$ npm install chai-postman --save-dev
In order to use this plugin, ensure that you have postman-collection and lodash installed.
var _ = require('lodash'),
chai = require('chai'),
sdk = require('postman-collection'),
chaiPostman = require('chai-postman'),
req,
res,
expect = chai.expect;
chai.use(chaiPostman(sdk, _));
// create postman-collection request and response instances
req = new sdk.Request({
header: [{
key: 'Content-Type',
value: 'application/json; charset=utf-8'
}]
});
res = new sdk.Response({ code: 200 });
// request assertions
expect(req).to.be.a.postmanRequest;
expect(req).to.have.header('Content-Type'); // an optional second argument can also be provided to assert value
// response assertions
expect(res).to.be.a.postmanResponse;
expect(res).to.have.statusCode(200);
Check the tests for a complete reference.
chai-postman | postman-collection | lodash |
---|---|---|
v0.1.0 | v3.x | v4.17.4 |
v1.0.0 | v3.x | v4.17.4 |
FAQs
A Chai plugin for Postman assertions
The npm package chai-postman receives a total of 2 weekly downloads. As such, chai-postman popularity was classified as not popular.
We found that chai-postman demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 4 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.
Security News
Node.js will be enforcing stricter semver-major PR policies a month before major releases to enhance stability and ensure reliable release candidates.
Security News
Research
Socket's threat research team has detected five malicious npm packages targeting Roblox developers, deploying malware to steal credentials and personal data.