vendredi 19 août 2016

How can i dynamically run jasmine suites?

I want to run test, for example, when i click on window i want to invoke some test, here is code example and i only get "Some text" in console whenever i click on window but jasmine doesn't recognize suites, it says no specs found. Help please, here is my code :

describe("Refresh", function () {

    window.addEventListener("click",function(){
        describe("neki",function(){
            it("test",function(){
               expect(true).toBe(true);
            });
            console.log("Some text")
        });
    })

});

Aucun commentaire:

Enregistrer un commentaire