<commit_before>import React from 'react';
import { shallow, mount } from 'enzyme';
import WeatherCard from '../lib/components/WeatherCard/WeatherCard';
<<<<<<< HEAD
import { cleanTestData } from './data/test-data';

describe('Daily WeatherCard', () => {
  var component;

  beforeEach(() => {
    component = shallow(<WeatherCard type="daily" key='0' data={cleanTestData.daily[0]} />);
  });

  it('should render daily DATE data', () => {
    var date = component.find('p.unit-of-time');
    expect(date.text()).toEqual('5/31');
  });

  it('should render daily IMG icon', () => {
    var img = component.find('img');

    expect(img.prop('src')).toEqual('assets/svg/partlycloudy.svg');
  });

  it('should render daily TEMP HIGH data', () => {
    var tempHigh = component.find('p.temp-high');

    expect(tempHigh.text()).toEqual('77℉');
  });

  it('should render daily TEMP LOW data', () => {
    var tempLow = component.find('p.temp-low');

    expect(tempLow.text()).toEqual('52℉');
  });
});

describe('Hourly WeatherCard', () => {
  var component;

  beforeEach(() => {
    component = shallow(<WeatherCard type="hourly" key='0' data={cleanTestData.hourly[0]} />);
  });

  it('should render hourly TIME data', () => {
    console.log(component.debug());
    var time = component.find('p.unit-of-time');

    expect(time.text()).toEqual('3:00 PM');
  });

  it('should render hourly IMG icon', () => {
    var img = component.find('img');

    expect(img.prop('src')).toEqual('assets/svg/cloudy.svg');
  });

  it('should render hourly TEMP data', () => {
    var temp = component.find('p.temp-high');

    expect(temp.text()).toEqual('76℉');
  });

  it('should NOT render hourly TEMP LOW data', () => {
    var tempLow = component.find('p.temp-low');

    expect(tempLow).toHaveLength(0);
=======
// import testData

describe.skip('WeatherCard', () => {
  it('should render', () => {
    var component = shallow(<WeatherCard type="daily" data='');

>>>>>>> 517988166f62551a093335789ea4748406b58421
  });
});<commit_msg>Clean up WeatherCard tests.<commit_after>import React from 'react';
import { shallow } from 'enzyme';
import { expect } from 'jest';
import WeatherCard from '../lib/components/WeatherCard/WeatherCard';
import { cleanTestData } from './data/test-data';

describe('Daily WeatherCard', () => {
  let component;

  beforeEach(() => {
    component = shallow(<WeatherCard type="daily" key='0' data={cleanTestData.daily[0]} />);
  });

  it('should render daily DATE data', () => {
    const date = component.find('p.unit-of-time');
    expect(date.text()).toEqual('5/31');
  });

  it('should render daily IMG icon', () => {
    const img = component.find('img');
    expect(img.prop('src')).toEqual('assets/svg/partlycloudy.svg');
  });

  it('should render daily TEMP HIGH data', () => {
    const tempHigh = component.find('p.temp-high');
    expect(tempHigh.text()).toEqual('77℉');
  });

  it('should render daily TEMP LOW data', () => {
    const tempLow = component.find('p.temp-low');
    expect(tempLow.text()).toEqual('52℉');
  });
});

describe('Hourly WeatherCard', () => {
  let component;

  beforeEach(() => {
    component = shallow(<WeatherCard type="hourly" key='0' data={cleanTestData.hourly[0]} />);
  });

  it('should render hourly TIME data', () => {
    const time = component.find('p.unit-of-time');
    expect(time.text()).toEqual('3:00 PM');
  });

  it('should render hourly IMG icon', () => {
    const img = component.find('img');
    expect(img.prop('src')).toEqual('assets/svg/cloudy.svg');
  });

  it('should render hourly TEMP data', () => {
    const temp = component.find('p.temp-high');
    expect(temp.text()).toEqual('76℉');
  });

  it('should NOT render hourly TEMP LOW data', () => {
    const tempLow = component.find('p.temp-low');
    expect(tempLow).toHaveLength(0);
  });
});
{'fraction_non_alphanumeric': 0.21237327787886665, 'fraction_numerical': 0.017936054068105018, 'mean_word_length': 3.933333333333333, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 40, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2454165', 'n_tokens_mistral': 1333, 'n_tokens_neox': 1248, 'n_words': 247}