Jasmine unit test template

{
    "Framework": "jasmine",
    "References": [
        {
            "Path": "helpers",
            "Includes": [ "**.js" ]
        },
        {
            "Path": "../",
            "Includes": [ "**.js"]
        }
    ],

    "Tests": [
        {
            "Path": "",
            "Includes": [ "**.js" ]
        }
    ]
}
describe("file", function () {

    beforeAll(function () {});

    beforeEach(function () {});

    afterAll(function () {});

    describe("function", function () {

        it("expectation", function () {
            //expect().toBe(value);
            //expect().toEqual(value);
            //expect().toMatch(value);
            //expect().toContain(value);

            //expect().toBeTruthy();
            //expect().toBeFalsey();
            //expect().toBeDefined();
            //expect().toBeUndefined();
            //expect().toBeNull();

            //expect().toBeGreaterThan(number);
            //expect().toBeLessThan(number);
            //expect().toBeCloseTo(number, range);
        });

    });

})
Back to top Back to Home