fit

export fit(name: string, fn: FunctionWithParamTokens | AnyTestFn, timeOut?: number) : void

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

Like it, but instructs the test runner to only run this test. Useful for debugging.

Wrapper around Jasmine fit function. See http://jasmine.github.io/ for more details.

Example:

describe('some component', () => { fit('has a test', () => { // This test will run. }); it('has another test', () => { throw 'This test will not run.'; }); });