Skip to content

Commit ff18edd

Browse files
authored
chore(menu): remove TestComponentBuilder (#1007)
1 parent e769cda commit ff18edd

File tree

1 file changed

+9
-24
lines changed

1 file changed

+9
-24
lines changed

src/components/menu/menu.spec.ts

Lines changed: 9 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,39 +1,24 @@
1-
import {
2-
inject,
3-
TestComponentBuilder,
4-
TestBed,
5-
async,
6-
} from '@angular/core/testing';
1+
import {TestBed, async} from '@angular/core/testing';
72
import {Component} from '@angular/core';
83
import {MdMenuModule} from './menu';
94

5+
106
describe('MdMenu', () => {
11-
let builder: TestComponentBuilder;
127

138
beforeEach(async(() => {
149
TestBed.configureTestingModule({
1510
imports: [MdMenuModule],
16-
declarations: [TestList],
11+
declarations: [TestMenu],
1712
});
1813

1914
TestBed.compileComponents();
2015
}));
2116

22-
beforeEach(inject([TestComponentBuilder], (tcb: TestComponentBuilder) => {
23-
builder = tcb;
24-
}));
25-
26-
it('should add and remove focus class on focus/blur', async(() => {
27-
var template = ``;
28-
builder.overrideTemplate(TestList, template).createAsync(TestList).then(fixture => {
29-
expect(true).toBe(true);
30-
});
31-
}));
32-
17+
it('should add and remove focus class on focus/blur', () => {
18+
let fixture = TestBed.createComponent(TestMenu);
19+
expect(fixture).toBeTruthy();
20+
});
3321
});
3422

35-
@Component({
36-
selector: 'test-menu',
37-
template: ``
38-
})
39-
class TestList {}
23+
@Component({template: ``})
24+
class TestMenu {}

0 commit comments

Comments
 (0)