npm.io
0.1.9 • Published 9 years ago

itay-test

Licence
Version
0.1.9
Deps
1
Vulns
0
Weekly
0
DeprecatedThis package is deprecated

itay-test

The library allows to declare the test stage.
If an error is thrown, it will be wrapped with an appropriate error.

Install

npm install --save-dev itay-test

Basic Usage

import { describe, test, testAsync } from "itay-test";
describe("Some tests", () => {
    test("test indexOf.", (t) => {
        t.arrange();
        let list = [];
        list.push(1);
        list.push(2);
        list.push(3);

        t.act();
        let result = list.indexOf(2);

        t.assert();
        expect(result).toBe(1);
    });
});