jasmine.async icon indicating copy to clipboard operation
jasmine.async copied to clipboard

Added jasmine.async.d.ts TypeScript definition file

Open csharpsi opened this issue 12 years ago • 0 comments

This definition file allows the use of this with TypeScript.

For example:

var async: asyncjasmine.AsyncSpec = new AsyncSpec(this);

async.beforeEach((done) => {
    //do stuff
    done();
});

async.it('is awesome', (done) => {
    setTimeout(() => {
        expect(true).toBe(true);
        done();
    }, 500);        
});

async.afterEach((done) => {
    //do stuff
    done();
});

csharpsi avatar Sep 12 '13 09:09 csharpsi