afterEach: Function

export afterEach : Function

exported from angular2/testing defined in angular2/src/testing/testing.ts (line 32)

Run a function (with an optional asynchronous callback) after each test case.

See http://jasmine.github.io/ for more details.

Example:

describe('some component', () => { afterEach((done) => { db.reset().then((_) => done()); }); it('uses the db', () => { // This test can leave the database in a dirty state. // The afterEach will ensure it gets reset. }); });