describe('Greeter', () => {
  describe('#say', () => {
    it('greets to the given name', () => {
      const greeter = new Greeter();
      expect(greeter.say('Hello', 'Angular 2')).toEqual('Hello, Angular 2!');
    });

    it('capitalizes greeting', () => {
      const greeter = new Greeter();
      expect(greeter.say('hello', 'Angular 2')).toEqual('Hello, Angular 2!');
    });
  });
});
function main() {
    testing_internal_1.describe('App component', function () {
        testing_internal_1.beforeEachProviders(function () { return [
            router_1.RouteRegistry,
            core_1.DirectiveResolver,
            core_1.provide(router_1.Location, { useClass: location_mock_1.SpyLocation }),
            core_1.provide(router_1.ROUTER_PRIMARY_COMPONENT, { useValue: app_1.AppCmp }),
            core_1.provide(router_1.Router, { useClass: router_2.RootRouter })
        ]; });
        testing_internal_1.it('should work', testing_internal_1.injectAsync([testing_internal_1.TestComponentBuilder], function (tcb) {
            return tcb.overrideTemplate(TestComponent, '<div><app></app></div>')
                .createAsync(TestComponent)
                .then(function (rootTC) {
                rootTC.detectChanges();
                var appDOMEl = rootTC.debugElement.componentViewChildren[0].nativeElement;
                testing_internal_1.expect(dom_adapter_1.DOM.querySelectorAll(appDOMEl, 'section > nav > a')[1].href).toMatch(/http:\/\/localhost:\d+\/about/);
            });
        }));
    });
}
import {Component, provide} from 'angular2/core';
import {AsyncTestCompleter, describe, expect, inject, it, TestComponentBuilder} from 'angular2/testing_internal';

import {EmployeeSearchformComponent} from './employee-searchform.component';

describe('Component: EmployeeSearchformComponent', () => {
    it('#', inject([TestComponentBuilder, AsyncTestCompleter], (tcb, async) => {
        tcb.createAsync(AppComponent)
            .then((fixture) => {
                fixture.detectChanges();

                async.done();
            }).catch((e)=> console.log(e));
    }))
});