Security News
Input Validation Vulnerabilities Dominate MITRE's 2024 CWE Top 25 List
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
tape-enzyme
Advanced tools
Tape-Enzyme is a micro library that helps you use tape with enzyme.
npm i --save tape-enzyme
Tape-Enzyme is a proxy of tape, but it has better functionality.
Import library and use as tape
test:
import test from 'tape-enzyme'
You can also add plugins to your current tape
instance:
import test from 'tape'
import {registration} from 'tape-enzyme'
export default registration(test)
Use three types of testing utils:
You can add your own methods using init
:
Example:
test.init('notStrictEqual', function (actual, expected, msg) {
this.operator(actual, '!==', expected, msg)
})
test('notStrictEqual test', t => {
t.notStrictEqual(3, '3', 'should be not strict equality')
t.end()
})
node
installed at v4.0.0+ and npm
at v2.0.0+.git
.$ git clone <this repo>
$ cd tape-enzyme
$ npm install
Linters:
$ npm run test:lint
Unit tests:
$ npm run test:unit
All tests:
$ npm run test
The main purpose of this library is to make writing tests with tape
easier. It involves less code while being more expressive and as robust as possible. If you think that we are missing any key features, please open a GitHub issue, or even better, a pull request. Any feedback you have about using tape-enzyme
would be greatly appreciated.
Tape-enzyme is Apache 2.0 licensed.
FAQs
tape-enzyme micro library
The npm package tape-enzyme receives a total of 1 weekly downloads. As such, tape-enzyme popularity was classified as not popular.
We found that tape-enzyme 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
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.
Research
Security News
A threat actor's playbook for exploiting the npm ecosystem was exposed on the dark web, detailing how to build a blockchain-powered botnet.