3h-test
TypeScript icon, indicating that this package has built-in type declarations

0.10.0 • Public • Published

3h-test

A simple test lib.

Links

Example

const T = require('3h-test');

T.test({ // default context options
    timeout: 1000,
}, { // test cases

    strictEqual(context) { // test case 0
        context.assertStrictEqual(1 + 2, 3);
    },

    promise(context) { // test case 1
        context.expectResolved(
            somePromise,
            'label',
            data => {
                // extra check on the data...
            }
        );
    },

});

Readme

Keywords

Package Sidebar

Install

npm i 3h-test

Weekly Downloads

21

Version

0.10.0

License

MIT

Unpacked Size

110 kB

Total Files

13

Last publish

Collaborators

  • 3h