Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
typpo committed Nov 23, 2022
1 parent ad2fa3e commit 8b0fb9a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion test/ci/chart_helpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ const CHART_PROGRESSBAR = {
data: {
datasets: [
{
data: [95],
data: [80],
},
{
data: [100],
Expand Down
6 changes: 3 additions & 3 deletions test/ci/charts.js
Original file line number Diff line number Diff line change
Expand Up @@ -122,15 +122,15 @@ describe('charts.js', () => {

it('renders a progress bar', async () => {
const buf = await chartsLib.renderChartJs(
100,
500,
50,
'transparent',
'red',
2.0,
'2.9.4',
'png',
charts.CHART_PROGRESSBAR,
);
const rgb = (await getColors(buf, 'image/png'))[0].rgb();
const rgb = (await getColors(buf, 'image/png'))[2].rgb();
assertSimilarRgb([76, 124, 164], rgb);
});

Expand Down

0 comments on commit 8b0fb9a

Please sign in to comment.