Skip to content

Commit

Permalink
Change the title from "Github Downloads" to "Github Release Downloads"
Browse files Browse the repository at this point in the history
  • Loading branch information
xavierfacq committed Oct 20, 2023
1 parent 6ba1264 commit fef1c90
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/Graph/Download.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ export default class DownloadTotal extends Component<{}, DownloadTotalState> {
<PieChart data={totalPieChartData} name='Total Downloads' showInLegend dataLabels colors={['rgb(108,109,227)', 'rgb(254,174,98)']} />
{/* <PieChart data={pieChartData} name="jdk8u222-b10 Downloads" /> */}
</div>
<ColumnDrilldown name='Github Downloads' />
<ColumnDrilldown name='Github Release Downloads' />
</>
)
}
Expand Down
2 changes: 1 addition & 1 deletion src/Graph/__tests__/ColumnDrilldown.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ describe('ColumnDrilldown component', () => {

await act(async () => {
({ getByText } = render(
<ColumnDrilldown name='Github Downloads' />
<ColumnDrilldown name='Github Release Downloads' />
));
setTimeout(() => { }, delay)
});
Expand Down
3 changes: 2 additions & 1 deletion src/Graph/__tests__/Download.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,8 @@ describe('Download component', () => {
expect(getByText('160 810 668')).toBeInTheDocument();
expect(getByText('233 144 070')).toBeInTheDocument();

expect(queryAllByText('Github Downloads', {selector: 'text'}).length).toBe(3);
expect(queryAllByText('Github Downloads', {selector: 'text'}).length).toBe(2);
expect(queryAllByText('Github Release Downloads', {selector: 'text'}).length).toBe(1);
expect(queryAllByText('JDK Versions', {selector: 'text'}).length).toBe(1);
});
});

0 comments on commit fef1c90

Please sign in to comment.