Skip to content
This repository has been archived by the owner on Apr 16, 2021. It is now read-only.

Commit

Permalink
lint:fix
Browse files Browse the repository at this point in the history
  • Loading branch information
RAMRATAN VENNAM committed Oct 3, 2016
1 parent 076fc2e commit b61bdde
Show file tree
Hide file tree
Showing 5 changed files with 67 additions and 67 deletions.
48 changes: 24 additions & 24 deletions src/routes/Dashboard/components/PopUpCard/DCCard/DCCard.story.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,31 +3,31 @@ import { storiesOf } from '@kadira/storybook';
import DCCard from './DCCard';

const dc1 = {
"contact": {
"name": "Joseph Smith"
},
"id": 1,
"address": {
"state": "Utah",
"city": "Salt Lake City",
"country": "US",
"latitude": 40.71,
"longitude": -111.9
}
};
contact: {
name: 'Joseph Smith',
},
id: 1,
address: {
state: 'Utah',
city: 'Salt Lake City',
country: 'US',
latitude: 40.71,
longitude: -111.9,
},
};
const dc2 = {
"contact": {
"name": "Mary Joe"
},
"id": 3,
"address": {
"state": "New York",
"city": "Albany",
"country": "US",
"latitude": 42.65,
"longitude": -73.75
}
};
contact: {
name: 'Mary Joe',
},
id: 3,
address: {
state: 'New York',
city: 'Albany',
country: 'US',
latitude: 42.65,
longitude: -73.75,
},
};
storiesOf('DCCard', module)
.add('dc1', () => (
<DCCard
Expand Down
22 changes: 11 additions & 11 deletions src/routes/Dashboard/components/PopUpCard/DCCard/DCCard.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,17 +8,17 @@ const setup = () => {
};
const props = {
dc: {
"contact": {
"name": "Joseph Smith"
contact: {
name: 'Joseph Smith',
},
id: 1,
address: {
state: 'Utah',
city: 'Salt Lake City',
country: 'US',
latitude: 40.71,
longitude: -111.9,
},
"id": 1,
"address": {
"state": "Utah",
"city": "Salt Lake City",
"country": "US",
"latitude": 40.71,
"longitude": -111.9
}
},
};
const component = shallow(<DCCard {...props} />);
Expand All @@ -28,7 +28,7 @@ const setup = () => {

test.todo('write tests for DCCard once complete.');
test('(Component) Renders with expected elements', t => {
const { props, component } = setup();
const { component } = setup();

t.true(component.is('Paper'),
'is wrapped by a Paper');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,27 +3,27 @@ import { storiesOf } from '@kadira/storybook';
import RetailerCard from './RetailerCard';

const retailer1 = {
"id": 1261,
"managerId": null,
"address": {
"state": "North Carolina",
"city": "Raleigh",
"country": "US",
"latitude": 35.71,
"longitude": -78.63
}
};
id: 1261,
managerId: null,
address: {
state: 'North Carolina',
city: 'Raleigh',
country: 'US',
latitude: 35.71,
longitude: -78.63,
},
};
const retailer2 = {
"id": 1262,
"managerId": null,
"address": {
"state": "Texas",
"city": "Austin",
"country": "US",
"latitude": 30.22,
"longitude": -97.74
}
};
id: 1262,
managerId: null,
address: {
state: 'Texas',
city: 'Austin',
country: 'US',
latitude: 30.22,
longitude: -97.74,
},
};
storiesOf('RetailerCard', module)
.add('retailer1', () => (
<RetailerCard
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,16 @@ const setup = () => {
};
const props = {
retailer: {
"id": 1261,
"managerId": null,
"address": {
"state": "North Carolina",
"city": "Raleigh",
"country": "US",
"latitude": 35.71,
"longitude": -78.63
}
},
id: 1261,
managerId: null,
address: {
state: 'North Carolina',
city: 'Raleigh',
country: 'US',
latitude: 35.71,
longitude: -78.63,
},
},
};
const component = shallow(<RetailerCard {...props} />);

Expand All @@ -26,7 +26,7 @@ const setup = () => {

test.todo('write tests for RetailerCard once complete.');
test('(Component) Renders with expected elements', t => {
const { props, component } = setup();
const { component } = setup();

t.true(component.is('Paper'),
'is wrapped by a Paper');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ const setup = () => {

test.todo('write tests for ShipmentCard once complete.');
test('(Component) Renders with expected elements', t => {
const { props, component } = setup();
const { component } = setup();

t.true(component.is('Paper'),
'is wrapped by a Paper');
Expand Down

0 comments on commit b61bdde

Please sign in to comment.