jlidder / jswiremock Goto Github PK
View Code? Open in Web Editor NEWA Javascript library used for stubbing and mocking web services.
License: GNU General Public License v2.0
A Javascript library used for stubbing and mocking web services.
License: GNU General Public License v2.0
TypeError: Cannot read property 'size' of null
at checkEqualQueryParams (.\node_modules\jswiremock\UrlParser.js:112:29)
at recursiveUrlLinkedListSearch (.\node_modules\jswiremock\UrlParser.js:101:20)
at recursiveUrlLinkedListSearch (.\node_modules\jswiremock\UrlParser.js:104:16)
at Object.exports.isMatchingStub (.\node_modules\jswiremock\UrlParser.js:68:12)
at Object.exports.hasMatchingStub (.\node_modules\jswiremock\UrlParser.js:73:21)
at .\node_modules\jswiremock\jswiremock.js:98:38
get is not matching params and post is neither working with the mentioned format in the readme, nor in the case when the jswiremock is running in different host - which is the usual case when we need to mock!
Hi,
is it possible to verify a specific request was made ? Like verify a post call was made with a specific Json Body ?
dynamic response body data
It is really a goot tools, I have many stub in json under mapping directory, is it possible to load them?
Running nsp reports the following three issues. They originate from express
so updating to ~4.14.1
or ~4.15.2
will fix the issues. Not sure if there are any other issues that arise from updating express
, but the tests and e2e tests pass at least.
$> nsp check
(+) 3 vulnerabilities found
┌───────────────┬────────────────────────────────────────────────────────────────┐
│ │ Regular Expression Denial of Service │
├───────────────┼────────────────────────────────────────────────────────────────┤
│ Name │ negotiator │
├───────────────┼────────────────────────────────────────────────────────────────┤
│ CVSS │ 7.5 (High) │
├───────────────┼────────────────────────────────────────────────────────────────┤
│ Installed │ 0.5.3 │
├───────────────┼────────────────────────────────────────────────────────────────┤
│ Vulnerable │ <= 0.6.0 │
├───────────────┼────────────────────────────────────────────────────────────────┤
│ Patched │ >= 0.6.1 │
├───────────────┼────────────────────────────────────────────────────────────────┤
│ Path │ [email protected] > [email protected] > [email protected] > negotiat… │
├───────────────┼────────────────────────────────────────────────────────────────┤
│ More Info │ https://nodesecurity.io/advisories/106 │
└───────────────┴────────────────────────────────────────────────────────────────┘
┌───────────────┬────────────────────────────────────────────────────────────────┐
│ │ Timing attack vulnerability │
├───────────────┼────────────────────────────────────────────────────────────────┤
│ Name │ cookie-signature │
├───────────────┼────────────────────────────────────────────────────────────────┤
│ CVSS │ 5.4 (Medium) │
├───────────────┼────────────────────────────────────────────────────────────────┤
│ Installed │ 1.0.5 │
├───────────────┼────────────────────────────────────────────────────────────────┤
│ Vulnerable │ <=1.0.5 │
├───────────────┼────────────────────────────────────────────────────────────────┤
│ Patched │ >=1.0.6 │
├───────────────┼────────────────────────────────────────────────────────────────┤
│ Path │ [email protected] > [email protected] > [email protected] │
├───────────────┼────────────────────────────────────────────────────────────────┤
│ More Info │ https://nodesecurity.io/advisories/134 │
└───────────────┴────────────────────────────────────────────────────────────────┘
┌───────────────┬────────────────────────────────────────────────────────────────┐
│ │ Regular Expression Denial of Service │
├───────────────┼────────────────────────────────────────────────────────────────┤
│ Name │ ms │
├───────────────┼────────────────────────────────────────────────────────────────┤
│ CVSS │ 5.3 (Medium) │
├───────────────┼────────────────────────────────────────────────────────────────┤
│ Installed │ 0.7.0 │
├───────────────┼────────────────────────────────────────────────────────────────┤
│ Vulnerable │ <=0.7.0 │
├───────────────┼────────────────────────────────────────────────────────────────┤
│ Patched │ >0.7.0 │
├───────────────┼────────────────────────────────────────────────────────────────┤
│ Path │ [email protected] > [email protected] > [email protected] > [email protected] │
├───────────────┼────────────────────────────────────────────────────────────────┤
│ More Info │ https://nodesecurity.io/advisories/46 │
└───────────────┴────────────────────────────────────────────────────────────────┘
Hello,
I was hoping to use jswiremock to mock SOAP requests from cypress. Wiremock definitely supports this feature, but I don't believe there is support in this package (I may be wrong). Can you please let me know. Thanks
jswiremock.jswiremock
doesn't follow naming conventions.
You should also add methods to the prototype(s) instead of every instance.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.