diff --git a/src/routes/Dashboard/components/Map/PopUpCard/PopUpCard.test.js b/src/routes/Dashboard/components/Map/PopUpCard/PopUpCard.test.js index aa61e34..d69eb1a 100644 --- a/src/routes/Dashboard/components/Map/PopUpCard/PopUpCard.test.js +++ b/src/routes/Dashboard/components/Map/PopUpCard/PopUpCard.test.js @@ -15,3 +15,36 @@ test('(Component) Renders with expected elements', t => { const component = shallow(); t.true(component.is('div'), 'is wrapped by a div'); }); + +const propsForDc = { + dashboard: { + infoBox: { + type: 'distributionCenter', + data: { + id: 1, + }, + }, + shipments: [], + retailers: [], + 'distribution-centers': [ + { + contact: { + name: 'Joseph Smith', + }, + id: 1, + address: { + state: 'Utah', + city: 'Salt Lake City', + country: 'US', + latitude: 40.71, + longitude: -111.9, + }, + }, + ], + }, + selectMarker: () => {}, +}; +test('(Component) Renders a DC card', t => { + const component = shallow(); + t.is(component.find('DCCard').length, 1, 'has a DC Card'); +});