mirror of
https://github.com/SomboChea/ui
synced 2026-01-18 17:16:00 +07:00
refactor: formatLicense to return undefined instead of null
This commit is contained in:
@@ -13,9 +13,9 @@ describe('formatLicense', (): void => {
|
||||
});
|
||||
|
||||
test('should check license field for other value', (): void => {
|
||||
expect(formatLicense(null)).toBeNull();
|
||||
expect(formatLicense({})).toBeNull();
|
||||
expect(formatLicense([])).toBeNull();
|
||||
expect(formatLicense(null)).toBeUndefined();
|
||||
expect(formatLicense({})).toBeUndefined();
|
||||
expect(formatLicense([])).toBeUndefined();
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user