Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
jasmine-matchers
Advanced tools
Under MIT License
This project contains a set of matchers for the jasmine test library that are very handy for more explicit test writing and especially more explicit error reportings. It contains matchers such as
Either you use in your browser jasmine test runner by adding it after the script-tag jasmine.js
:
// Since v0.2.0 you have to include every matcher on demand
<script src="jasmine-matchers/src/toBe.js"></script>
<script src="jasmine-matchers/src/toHave.js"></script>
<script src="jasmine-matchers/src/toContain.js"></script>
<script src="jasmine-matchers/src/toThrow.js"></script>
<script src="jasmine-matchers/src/toStartEndWith.js"></script>
Or when using jasmine-node you can simply install the matchers via:
npm install jasmine-matchers
And make them available in your spec-file:
require('jasmine-matchers');
describe(...);
// or via requirejs (assuming your specs are within PROJECT_ROOT/test):
require([
'../node_modules/jasmine-matchers/src/toBe.js',
'../node_modules/jasmine-matchers/src/toHave.js',
'../node_modules/jasmine-matchers/src/toContain.js',
'../node_modules/jasmine-matchers/src/toThrow.js',
'../node_modules/jasmine-matchers/src/toStartEndWith.js',
], function() {
describe(...);
});
This used to be our (uxebu's) collection of matchers that moved from project to project, got extended here and there, let's share it.
Use make build
to create one file, that lands in dist/matchers.js
that you can include, if you don't like to handle multiple files.
FAQs
Extends the matchers jasmine provides.
The npm package jasmine-matchers receives a total of 0 weekly downloads. As such, jasmine-matchers popularity was classified as not popular.
We found that jasmine-matchers demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 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.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.