it

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

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

Define a single test case with the given test name and execution function.

The test function can be either a synchronous function, an asynchronous function that takes a completion callback, or an injected function created via inject or injectAsync. The test will automatically wait for any asynchronous calls inside the injected test function to complete.

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

Example:

describe('some component', () => { it('does something', () => { // This is a test. }); });