fix(common): DatePipe doesn't throw for NaN (#14117)
Fixes #14103 PR Close #14117
This commit is contained in:

committed by
Miško Hevery

parent
d5f1419afe
commit
32cc6759ef
@ -53,6 +53,8 @@ export function main() {
|
||||
|
||||
it('should return null for empty string', () => expect(pipe.transform('')).toEqual(null));
|
||||
|
||||
it('should return null for NaN', () => expect(pipe.transform(Number.NaN)).toEqual(null));
|
||||
|
||||
it('should support ISO string without time',
|
||||
() => { expect(() => pipe.transform(isoStringWithoutTime)).not.toThrow(); });
|
||||
|
||||
|
Reference in New Issue
Block a user