0 votes
in AngularJS Packaging and Testing by
How to define a Spec in Jasmine?

1 Answer

0 votes
by

spec in Jasmine represents a test case inside the test suite. We can define spec by calling the global Jasmine function it, which, like describe takes a string and a function.

Example

describe("Suite Name", function() {

    it("test spec", function() {

        expect( expression ).toEqual(true);

    }); 

});

Related questions

0 votes
asked Aug 20, 2021 in AngularJS Packaging and Testing by SakshiSharma
0 votes
asked Aug 19, 2021 in AngularJS Packaging and Testing by SakshiSharma
...