Napoleonic Panda Machine
    Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

    assertopublic

    Asserto

    Improved assert, supporting the feature set of Expresso's assert used to easily migrate away Expresso to another testing framework. nothing special, just module.exports TJ's code from expresso as a small module

    Features

    • assert.eql() alias of assert.deepEqual()
    • assert.includes()
    • assert.type()
    • assert.isNull()
    • assert.isUndefined()
    • assert.isNotNull()
    • assert.isDefined()
    • assert.match()
    • assert.length()
    • assert.response() with slightly different callback style: was function(res), now: function(err, res){}

    Response

    assert.response now looks like this:

    assert.response({ url : '/someLocalEndpoint', method : 'POST', headers : { 'Content-Type' : 'application/json' } }, { status : 200 }, function(err, res) { assert.ok(!err); assert.equal(res.headers['content-type'], 'application/json'); });

    Keywords

    none

    install

    npm i asserto

    Downloadsweekly downloads

    0

    version

    0.2.0

    license

    none

    repository

    github.com

    last publish

    collaborators

    • avatar