
Security News
Meet Socket at Black Hat and DEF CON 2025 in Las Vegas
Meet Socket at Black Hat & DEF CON 2025 for 1:1s, insider security talks at Allegiant Stadium, and a private dinner with top minds in software supply chain security.
A simple console API based unit test suite running on node.js and the browser, making testing simple and fun (again). It’s not meant to be a feature-rich testing framework but made for simple and lightweight unit tests.
To get going with test.js you can:
bower install test-js
npm install test-js
You can create test suites containing multiple tests according to the following pattern.
test.suite('NAME OF YOUR SUITE', {
…
'DESCRIPTION': [EXPRESSION, EXPECTION],
…
});
It’s actually pretty straight-forward…
test.suite('Demo Suite', {
'true is true': [true, true],
'false is true': [false, true],
'one is equal to one': [1, 1],
'one is equal to two': [1, 2]
});
var test = require('./test.js');
test.suite('Demo Suite', {
…
});
example.js
within this repository contains an extensive node.js example.
<script src="test.js"></script>
<script>
test.suite('Demo Suite', {
…
});
</script>
example.html
within this repository contains an extensive browser example.
Copyright (c) 2014 websperts
Licensed under the MIT license.
See LICENSE for more info.
FAQs
A simple console API based unit test suite
We found that test-js 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.
Security News
Meet Socket at Black Hat & DEF CON 2025 for 1:1s, insider security talks at Allegiant Stadium, and a private dinner with top minds in software supply chain security.
Security News
CAI is a new open source AI framework that automates penetration testing tasks like scanning and exploitation up to 3,600× faster than humans.
Security News
Deno 2.4 brings back bundling, improves dependency updates and telemetry, and makes the runtime more practical for real-world JavaScript projects.