Skip to content

Commit

Permalink
test: update tests to reflect change in tick count
Browse files Browse the repository at this point in the history
  • Loading branch information
markov00 committed Apr 5, 2023
1 parent 0b37882 commit ef0ebbd
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 41 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,30 +45,20 @@ exports[`XYChart - debug state line chart rotation: -90 1`] = `
"id": "yAxis",
"labels": [
"0",
"1",
"2",
"3",
"4",
"5",
"6",
"7",
"8",
"9",
"10",
],
"position": "bottom",
"title": undefined,
"values": [
0,
1,
2,
3,
4,
5,
6,
7,
8,
9,
10,
],
},
Expand Down Expand Up @@ -159,30 +149,20 @@ exports[`XYChart - debug state line chart rotation: 0 1`] = `
"id": "yAxis",
"labels": [
"0",
"1",
"2",
"3",
"4",
"5",
"6",
"7",
"8",
"9",
"10",
],
"position": "left",
"title": undefined,
"values": [
0,
1,
2,
3,
4,
5,
6,
7,
8,
9,
10,
],
},
Expand Down Expand Up @@ -273,30 +253,20 @@ exports[`XYChart - debug state line chart rotation: 90 1`] = `
"id": "yAxis",
"labels": [
"0",
"1",
"2",
"3",
"4",
"5",
"6",
"7",
"8",
"9",
"10",
],
"position": "bottom",
"title": undefined,
"values": [
0,
1,
2,
3,
4,
5,
6,
7,
8,
9,
10,
],
},
Expand Down Expand Up @@ -387,30 +357,20 @@ exports[`XYChart - debug state line chart rotation: 180 1`] = `
"id": "yAxis",
"labels": [
"0",
"1",
"2",
"3",
"4",
"5",
"6",
"7",
"8",
"9",
"10",
],
"position": "left",
"title": undefined,
"values": [
0,
1,
2,
3,
4,
5,
6,
7,
8,
9,
10,
],
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ describe('Axis computational utils', () => {
expect(yScale?.bandwidth).toBe(0);
expect(yScale?.domain).toEqual([0, 1]);
expect(yScale?.range).toEqual([100, 0]);
expect(yScale?.ticks()).toEqual([0, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9, 1]);
expect(yScale?.ticks()).toEqual([0, 0.2, 0.4, 0.6, 0.8, 1]);

const ungroupedAxisSpec = { ...verticalAxisSpec, groupId: 'foo' };
const nullYScale = getScaleForAxisSpec(
Expand Down

0 comments on commit ef0ebbd

Please sign in to comment.