Skip to content

armgit / TREK

Public Imported from GitHub
0

The most complete open-source travel planner: real-time collaboration, bookings, budgets, packing lists, journals, offline PWA, SSO and an AI-ready MCP server, with planet-wide place search and routing built in.

637 B
Raw Blame
import { describe, expect, it } from 'vitest';
import { journeyWeatherCategory } from '../../../../src/components/Journey/journeyWeather';

describe('journeyWeatherCategory', () => {
  it.each([
    ['Clear', 'Clear sky', 'sunny'],
    ['Clouds', 'Partly cloudy', 'partly'],
    ['Clouds', 'Teilweise bewolkt', 'partly'],
    ['Clouds', 'Overcast', 'cloudy'],
    ['Rain', 'Rain', 'rainy'],
    ['Thunderstorm', 'Thunderstorm', 'stormy'],
    ['Snow', 'Snowfall', 'cold'],
  ])('maps %s / %s to the existing %s category', (main, description, expected) => {
    expect(journeyWeatherCategory(main, description)).toBe(expected);
  });
});