Skip to content

Commit 8527c72

Browse files
committed
tests
1 parent 165b38b commit 8527c72

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/tests/axisX.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ describe('AxisX mark', () => {
122122

123123
const ticks = container.querySelectorAll('g.axis-x > g.tick') as NodeListOf<SVGGElement>;
124124
const tickValues = Array.from(ticks).map((t) => t.querySelector('text')?.textContent);
125-
expect(tickValues).toStrictEqual(['0', '30', '60', '90', '120']);
125+
expect(tickValues).toStrictEqual(['0', '30', '60', '90']);
126126
});
127127

128128
it('tick interval via axis options', () => {
@@ -135,7 +135,7 @@ describe('AxisX mark', () => {
135135

136136
const ticks = container.querySelectorAll('g.axis-x > g.tick') as NodeListOf<SVGGElement>;
137137
const tickValues = Array.from(ticks).map((t) => t.querySelector('text')?.textContent);
138-
expect(tickValues).toStrictEqual(['0', '30', '60', '90', '120']);
138+
expect(tickValues).toStrictEqual(['0', '30', '60', '90']);
139139
});
140140

141141
it('tick interval via axis.ticks', () => {

src/tests/axisY.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ describe('AxisY mark', () => {
121121

122122
const ticks = container.querySelectorAll('g.axis-y > g.tick') as NodeListOf<SVGGElement>;
123123
const tickValues = Array.from(ticks).map((t) => t.querySelector('text')?.textContent);
124-
expect(tickValues).toStrictEqual(['0', '30', '60', '90', '120']);
124+
expect(tickValues).toStrictEqual(['0', '30', '60', '90']);
125125
});
126126

127127
it('tick interval via axis options', () => {
@@ -134,6 +134,6 @@ describe('AxisY mark', () => {
134134

135135
const ticks = container.querySelectorAll('g.axis-y > g.tick') as NodeListOf<SVGGElement>;
136136
const tickValues = Array.from(ticks).map((t) => t.querySelector('text')?.textContent);
137-
expect(tickValues).toStrictEqual(['0', '30', '60', '90', '120']);
137+
expect(tickValues).toStrictEqual(['0', '30', '60', '90']);
138138
});
139139
});

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy