Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

extend-tape

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

extend-tape

Extends Tape with new assertions

  • 1.2.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
775
increased by47.62%
Maintainers
1
Weekly downloads
 
Created
Source

extend-tape

npm npm Build Status

Extends Tape with new assertions

Install

$ npm install --save-dev extend-tape

How to use

import tape from 'tape';
import addAssertions from 'extend-tape';

// add a new assertion: biggerThan
const test = addAssertions(tape, {
    biggerThan (a, b) {
        this.ok(b > a, `is bigger than ${a}`);
    }
});

test('5 is bigger than 4', (t) => {
    t.biggerThan(4, 5);
    t.end();
});

Run tests

$ npm install
$ npm test

Keywords

FAQs

Package last updated on 14 Feb 2016

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc