import { formatAuto } from './format_auto';
describe('formatAuto', () => {
    test('boolean value', () => {
        expect(formatAuto(true)).toBe('Yes');
        expect(formatAuto(false)).toBe('No');
    });
    test('numeric value', () => {
        expect(formatAuto(1234.567)).toBe('1234.567');
    });
    test('string value', () => {
        expect(formatAuto('value')).toBe('value');
    });
    test('date value', () => {
        const value = new Date(1999, 0, 1, 2, 3, 4, 5);
        expect(formatAuto(value)).toBe('1 Jan 1999 02:03');
    });
    test('array of dates', () => {
        const dates = [new Date(1999, 0, 1, 2, 3, 4, 5)];
        expect(formatAuto(dates)).toBe('1 Jan 1999 02:03');
    });
    test('object value', () => {
        const obj = { key: 'value' };
        expect(formatAuto(obj)).toBe('{"key":"value"}');
    });
});
//# sourceMappingURL=format_auto.test.js.map