fix(core): Update types for TypeScript nullability support (#15472)
This commit is contained in:

committed by
Victor Berchet

parent
331b9f6425
commit
910c0d9ee7
@ -11,9 +11,9 @@ import {stringify} from '../src/util';
|
||||
export function main() {
|
||||
describe('stringify', () => {
|
||||
it('should return string undefined when toString returns undefined',
|
||||
() => expect(stringify({toString: (): string => undefined})).toBe('undefined'));
|
||||
() => expect(stringify({toString: (): any => undefined})).toBe('undefined'));
|
||||
|
||||
it('should return string null when toString returns null',
|
||||
() => expect(stringify({toString: (): string => null})).toBe('null'));
|
||||
() => expect(stringify({toString: (): any => null})).toBe('null'));
|
||||
});
|
||||
}
|
||||
|
Reference in New Issue
Block a user