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

Commit

Permalink
fix test case
Browse files Browse the repository at this point in the history
  • Loading branch information
rvennam987 committed Dec 9, 2016
1 parent f08ad22 commit 8de444c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
4 changes: 4 additions & 0 deletions src/routes/Dashboard/components/ForecastTile/ForecastTile.jsx
Expand Up @@ -38,7 +38,11 @@ export class ForecastTile extends React.PureComponent {
componentDidUpdate = () => {
this.getWeatherForecast();
}

// TOOD: Use redux
getWeatherForecast = () => {
if (!this.props.token) return;

if (this.props.address && !this.props.address.weather) {
const address = this.props.address;
api.getWeatherObservations(this.props.token, address.longitude, address.latitude)
Expand Down
Expand Up @@ -20,7 +20,6 @@ const setup = () => {
return { spies, props, component };
};

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

Expand Down

0 comments on commit 8de444c

Please sign in to comment.