UNPKG

react-native-ui-lib

Version:

<p align="center"> <img src="https://user-images.githubusercontent.com/1780255/105469025-56759000-5ca0-11eb-993d-3568c1fd54f4.png" height="250px" style="display:block"/> </p> <p align="center">UI Toolset & Components Library for React Native</p> <p a

17 lines (13 loc) 475 B
import {Avatar} from '../index'; describe('Avatar Badge', () => { describe('badgeProps.size supports number', () => { it('should return 99 as the size number given', () => { const uut = new Avatar({badgeProps: {size: 99}}); expect(uut.getBadgeSize()).toEqual(99); }); it('should return default when passing 0 as size', () => { const uut = new Avatar({badgeProps: {size: 0}}); expect(uut.getBadgeSize()).toEqual(10); }); }); });