/* ts-lint:disable:no-unused-variable */
import { TestBed, async } from '@angular/core/testing';
import { {{ componentName }} } from './{{ selector }}.component';

describe('{{ componentName }}', () => {
    beforeEach(() => {
        TestBed.configureTestingModule({
            declarations: [
                {{ componentName }}
            ],
        });
        TestBed.compileComponents();
    });

    it('should create the {{ selector }}', async(() => {
        const fixture = TestBed.createComponent({{ componentName }});
        const component = fixture.debugElement.componentInstance;

        expect(component).toBeTruthy();
    }));
});

/* ts-lint:disable:no-unused-variable */
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { {{ componentName }} } from './{{ selector }}.component';

describe('{{ componentName }}', () => {
    let component: {{ componentName }};
    let fixture: ComponentFixture<{{ componentName }}>;

    beforeEach(async(() => {
        TestBed.configureTestingModule({
            declarations: [
                {{ componentName }}
            ],
        });
        TestBed.compileComponents();
    }));

    beforeEach(() => {
        fixture = TestBed.createComponent({{ componentName }});
        component = fixture.debugElement.componentInstance;
    });

    it('should create the {{ selector }}', () => {
        expect(component).toBeTruthy();
    });
});

Update to the testing of components.
Update to the testing of components.

The setup now falls more inline with the guidelines from https://angular.io/docs/ts/latest/guide/testing.html#!#async-in-before-each
