UNPKG

@axinom/mosaic-ui

Version:

UI components for building Axinom Mosaic applications

17 lines (15 loc) 399 B
import { getTooltipText } from './ToolTipHelpers'; describe('ToolTipHelpers', () => { it.each([ [1, '1'], ['asdf', 'asdf'], [{}, undefined], [null, undefined], [{ toString: () => 'test' }, 'test'], [false, 'false'], [true, 'true'], ['', undefined], ])('getTooltipText(%p) = %p', (input, expected) => { expect(getTooltipText(input)).toBe(expected); }); });