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.
mocha-testing-skeleton
Advanced tools
Simple testing skeleton for running mocha + expect.js unit tests in the browser.
This repo demonstrates how to run mocha + expect.js unit tests in the browser (or headlessly), with tests written in BDD (Behavior Driven Development) style.
Dependencies:
Included files:
main.js
- the code under testtest/index.html
- an HTML page that sets up the test infrastructure and enables you to run the tests.test/tests.js
- the mocha test suite. The functions "describe()" and "it()" and "afterEach()" are part of mocha; the "expect()" functions are assertion functions that come from expect.js.Based upon this repo. Altered to meet my needs.
$ git clone https://github.com/mjhea0/mocha-testing-skeleton.git
make install
. This installs the dependencies listed above.test/index.html
file in a browser. This displays a test page that shows two tests passing.make test
and observe the results on the command line.FAQs
Simple testing skeleton for running mocha + expect.js unit tests in the browser.
We found that mocha-testing-skeleton demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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.