import { calculatePercentages } from '../utils/calculatePercentages';

describe('calculatePercentages', () => {
  it('should calculate percentages for a valid array of numbers', () => {
    const times = [10, 20, 30];
    const expected = ['16.67', '33.33', '50.00'];
    const result = calculatePercentages(times);
    expect(result).toEqual(expected);
  });

  it('should handle an empty array', () => {
    const times = [];
    const expected = [];
    const result = calculatePercentages(times);
    expect(result).toEqual(expected);
  });

});
