test-weather-fork
Version:
React Weather component
18 lines (16 loc) • 519 B
JavaScript
import React from 'react';
// eslint-disable-next-line import/no-extraneous-dependencies
import snapshot from 'check-snapshot';
import Forecast from '../src/js/components/Forecast';
import { mappedForecast } from './fixtures/openweather/forecast';
describe('Forecast', () => {
test('should render the Forecast component', () => {
const labels = {
temperature: 'F',
windSpeed: 'km/h',
};
snapshot(
<Forecast unitsLabels={labels} forecast={mappedForecast} theme={{}} />,
);
});
});