Skip to content

Commit

Permalink
fix: Fetching analytics for year over year charts in plugin (#231)
Browse files Browse the repository at this point in the history
  • Loading branch information
neeilya committed Mar 28, 2019
1 parent 9f9f1a4 commit 16853ef
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions packages/plugin/src/ChartPlugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,7 @@ class ChartPlugin extends Component {
responses,
yearlySeriesLabels,
} = await apiFetchAnalyticsForYearOverYear(
this.props.d2,
visualization,
options
));
Expand Down
1 change: 1 addition & 0 deletions packages/plugin/src/__tests__/ChartPlugin.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -277,6 +277,7 @@ describe('ChartPlugin', () => {
expect(
api.apiFetchAnalyticsForYearOverYear.mock.calls[0][1]
).toEqual({
...yearOverYearCurrentMock,
option1: 'def',
});

Expand Down

0 comments on commit 16853ef

Please sign in to comment.