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
  });
});

@@ -40,15 +40,8 @@
 llow
-, mount
  %7D f
@@ -54,16 +54,47 @@
 nzyme';%0A
+import %7B expect %7D from 'jest';%0A
 import W
@@ -158,21 +158,8 @@
 d';%0A
-%3C%3C%3C%3C%3C%3C%3C HEAD%0A
 impo
@@ -237,35 +237,35 @@
 ard', () =%3E %7B%0A  
-var
+let
  component;%0A%0A  b
@@ -432,19 +432,21 @@
 %3E %7B%0A    
-var
+const
  date = 
@@ -568,35 +568,37 @@
 n', () =%3E %7B%0A    
-var
+const
  img = component
@@ -603,33 +603,32 @@
 nt.find('img');%0A
-%0A
     expect(img.p
@@ -737,27 +737,29 @@
 () =%3E %7B%0A    
-var
+const
  tempHigh = 
@@ -781,33 +781,32 @@
 'p.temp-high');%0A
-%0A
     expect(tempH
@@ -886,35 +886,37 @@
 a', () =%3E %7B%0A    
-var
+const
  tempLow = compo
@@ -932,33 +932,32 @@
 ('p.temp-low');%0A
-%0A
     expect(tempL
@@ -1035,19 +1035,19 @@
  =%3E %7B%0A  
-var
+let
  compone
@@ -1233,43 +1233,9 @@
 cons
-ole.log(component.debug());%0A    var
+t
  tim
@@ -1268,25 +1268,24 @@
 -of-time');%0A
-%0A
     expect(t
@@ -1373,19 +1373,21 @@
 %3E %7B%0A    
-var
+const
  img = c
@@ -1404,25 +1404,24 @@
 ind('img');%0A
-%0A
     expect(i
@@ -1524,27 +1524,29 @@
 () =%3E %7B%0A    
-var
+const
  temp = comp
@@ -1568,25 +1568,24 @@
 emp-high');%0A
-%0A
     expect(t
@@ -1678,19 +1678,21 @@
 %3E %7B%0A    
-var
+const
  tempLow
@@ -1724,17 +1724,16 @@
 -low');%0A
-%0A
     expe
@@ -1765,217 +1765,8 @@
 0);%0A
-=======%0A// import testData%0A%0Adescribe.skip('WeatherCard', () =%3E %7B%0A  it('should render', () =%3E %7B%0A    var component = shallow(%3CWeatherCard type=%22daily%22 data='');%0A%0A%3E%3E%3E%3E%3E%3E%3E 517988166f62551a093335789ea4748406b58421%0A
   %7D)

Clean up WeatherCard tests.