Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
JavaScript
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
test
.gitignore
.npmignore
.testem.json
.travis.yml
LICENCE
README.md
index.js
package.json

README.md

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

Something went wrong with that request. Please try again.