From 21fd804306a629c84ce8a4623f151a875035ac6a Mon Sep 17 00:00:00 2001 From: Jeremy Elbourn Date: Fri, 12 Aug 2016 12:30:57 -0700 Subject: [PATCH] chore(tabs): remove TestComponentBuilder --- src/components/tabs/tab-group.spec.ts | 26 +++++--------------------- 1 file changed, 5 insertions(+), 21 deletions(-) diff --git a/src/components/tabs/tab-group.spec.ts b/src/components/tabs/tab-group.spec.ts index 05261c203685..d55dc2ada27d 100644 --- a/src/components/tabs/tab-group.spec.ts +++ b/src/components/tabs/tab-group.spec.ts @@ -1,12 +1,4 @@ -import { - inject, - async, - fakeAsync, - tick, - TestComponentBuilder, - ComponentFixture, - TestBed, -} from '@angular/core/testing'; +import {async, fakeAsync, tick, ComponentFixture, TestBed} from '@angular/core/testing'; import {MdTabGroup, MdTabsModule} from './tabs'; import {Component} from '@angular/core'; import {By} from '@angular/platform-browser'; @@ -14,7 +6,6 @@ import {Observable} from 'rxjs/Observable'; describe('MdTabGroup', () => { - let builder: TestComponentBuilder; beforeEach(async(() => { TestBed.configureTestingModule({ @@ -22,23 +13,18 @@ describe('MdTabGroup', () => { declarations: [ SimpleTabsTestApp, AsyncTabsTestApp, + DisabledTabsTestApp ], }); TestBed.compileComponents(); })); - beforeEach(inject([TestComponentBuilder], (tcb: TestComponentBuilder) => { - builder = tcb; - })); - describe('basic behavior', () => { let fixture: ComponentFixture; beforeEach(async(() => { - builder.createAsync(SimpleTabsTestApp).then(f => { - fixture = f; - }); + fixture = TestBed.createComponent(SimpleTabsTestApp); })); it('should default to the first tab', async(() => { @@ -155,10 +141,8 @@ describe('MdTabGroup', () => { let fixture: ComponentFixture; beforeEach(async(() => { - builder.createAsync(DisabledTabsTestApp).then(f => { - fixture = f; - fixture.detectChanges(); - }); + fixture = TestBed.createComponent(DisabledTabsTestApp); + fixture.detectChanges(); })); it('should disable the second tab', () => {