Socket
Book a DemoInstallSign in
Socket

assert-tap

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

assert-tap

Assert module but outputs TAP

latest
Source
npmnpm
Version
0.1.4
Version published
Maintainers
1
Created
Source

assert-tap

build status

browser support

Assert module but outputs TAP

Example

var assert = require("assert-tap")("my example")

// use the assert api
assert.equal("one", "one")

// outputs TAP to console.
// it's that easy.
// make sure to call assert.end() to end your example
assert.end()

example with test interface

var test = require("assert-tap").test

test("my test", function (assert) {
    // some assertions

    // Now I am done
    assert.end()
})

test("my second test", function (assert) {
    // some assertions

    // can end asynchronously
    setTimeout(function () {
        assert.end()
    }, 500)
})

Installation

npm install assert-tap

Contributors

  • Raynos

MIT Licenced

FAQs

Package last updated on 29 Jan 2013

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