import { describe, expect, it } from 'vitest';
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);
  });
});
