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

mockyeah

Package Overview
Dependencies
Maintainers
1
Versions
52
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mockyeah - npm Package Compare versions

Comparing version 0.11.0 to 0.12.1

.tmp/fixtures/a-new-fixture/http:||127.0.0.1:5051|some|service

2

index.js
'use strict';
/* eslint-disable no-console */
const app = require('./server').app;
const app = require('./app');

@@ -6,0 +6,0 @@ app.config = require('./config');

{
"name": "mockyeah",
"version": "0.11.0",
"version": "0.12.1",
"description": "An invaluable service mocking platform built on Express.",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -11,2 +11,36 @@ 'use strict';

it('should not allow for more than one response type', () => {
const payloadKeys = ['fixture', 'filePath', 'html', 'json', 'text'];
const optionSets = [
{
fixture: './test/fixtures/some-data.json',
filePath: './test/fixtures/some-data.csv'
},
{
fixture: './test/fixtures/some-data.json',
filePath: './test/fixtures/some-data.csv',
html: '<body></body>'
},
{
fixture: './test/fixtures/some-data.json',
filePath: './test/fixtures/some-data.csv',
html: '<body></body>',
json: '{"test": "json"}'
},
{
fixture: './test/fixtures/some-data.json',
filePath: './test/fixtures/some-data.csv',
html: '<body></body>',
json: '{"test": "json"}',
text: 'test text'
}
];
optionSets.forEach(optionSet => {
expect(() => {
mockyeah.get('/service/end/point', optionSet);
}).to.throw('Response options must not include more than one of the following: ' + payloadKeys.join(', '));
});
});
describe('Status', () => {

@@ -313,2 +347,2 @@ it('should return 404 for undeclared services', (done) => {

});
});
});

Sorry, the diff of this file is not supported yet

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