Skip to content

Commit 4e384c1

Browse files
committed
add test
1 parent 8bc7672 commit 4e384c1

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/lib/datepicker/datepicker.spec.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,7 @@ describe('MdDatepicker', () => {
275275
}));
276276
});
277277

278-
describe('datepicker with no inputs', () => {
278+
fdescribe('datepicker with no inputs', () => {
279279
let fixture: ComponentFixture<NoInputDatepicker>;
280280
let testComponent: NoInputDatepicker;
281281

@@ -291,6 +291,10 @@ describe('MdDatepicker', () => {
291291
fixture.detectChanges();
292292
}));
293293

294+
it('should not throw when accessing disabled property', () => {
295+
expect(() => testComponent.datepicker.disabled).not.toThrow();
296+
});
297+
294298
it('should throw when opened with no registered inputs', async(() => {
295299
expect(() => testComponent.datepicker.open()).toThrow();
296300
}));

0 commit comments

Comments
 (0)