feat(Badge): max support string type

This commit is contained in:
chenjiahan
2020-10-02 17:05:08 +08:00
parent 56c50666ce
commit 839b8654ee
7 changed files with 24 additions and 23 deletions
+1
View File
@@ -91,6 +91,7 @@ test('isMobile', () => {
});
test('isNumeric', () => {
expect(isNumeric(1)).toBeTruthy();
expect(isNumeric('1')).toBeTruthy();
expect(isNumeric('1.2')).toBeTruthy();
expect(isNumeric('1..2')).toBeFalsy();