fix: invalid date handling (#7422)

fix AF-1049
This commit is contained in:
pengx17
2024-07-04 07:11:18 +00:00
parent d6ad7d566f
commit 5c1f78afd4
2 changed files with 9 additions and 0 deletions
@@ -396,4 +396,9 @@ describe('humanTime', () => {
})
).toBe('本月');
});
test('invalid time', () => {
createI18n();
expect(i18nTime('foobar')).toBe('');
});
});