UNPKG

@zohodesk/hooks

Version:

Unified Component Library - Hooks

13 lines (12 loc) 386 B
// hook import import useNotificationBadge from "../useNotificationBadge"; // test cases for textBox describe('notification hooks test cases', () => { test('maximum count ', () => { const result = useNotificationBadge(100, 10); expect(result).toBe('10+'); }); test('count ', () => { const result = useNotificationBadge(10, 100); expect(result).toBe(10); }); });