jasmine.async
jasmine.async copied to clipboard
Added jasmine.async.d.ts TypeScript definition file
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();
});