Skip to content

Commit d409aa3

Browse files
committed
add test
1 parent 8bc7672 commit d409aa3

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/lib/datepicker/datepicker.spec.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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)