Skip to content

Commit 5841960

Browse files
committed
another input test
1 parent 292babd commit 5841960

File tree

1 file changed

+7
-9
lines changed

1 file changed

+7
-9
lines changed

src/components/input/input.spec.ts

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -146,17 +146,15 @@ fdescribe('MdInput', function () {
146146
}));
147147

148148
it('supports hint labels attribute', async(() => {
149-
builder.createAsync(MdInputHintLabelTestController)
150-
.then(fixture => {
151-
fixture.detectChanges();
149+
let fixture = TestBed.createComponent(MdInputHintLabelTestController);
150+
fixture.detectChanges();
152151

153-
// If the hint label is empty, expect no label.
154-
expect(fixture.debugElement.query(By.css('.md-hint'))).toBeNull();
152+
// If the hint label is empty, expect no label.
153+
expect(fixture.debugElement.query(By.css('.md-hint'))).toBeNull();
155154

156-
fixture.componentInstance.label = 'label';
157-
fixture.detectChanges();
158-
expect(fixture.debugElement.query(By.css('.md-hint'))).not.toBeNull();
159-
});
155+
fixture.componentInstance.label = 'label';
156+
fixture.detectChanges();
157+
expect(fixture.debugElement.query(By.css('.md-hint'))).not.toBeNull();
160158
}));
161159

162160
it('supports hint labels elements', async(() => {

0 commit comments

Comments
 (0)