Skip to content

Commit

Permalink
skip: fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
netil committed May 30, 2022
1 parent 19bd350 commit 7098f19
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions test/internals/text-spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1343,7 +1343,7 @@ describe("TEXT", () => {
const expectedY = [390, 321];

chart.$.text.texts.each(function(d, i) {
expect(+this.getAttribute("y")).to.be.closeTo(expectedY[i], 1);
expect(+this.getAttribute("y")).to.be.closeTo(expectedY[i], 2);
});
});

Expand All @@ -1356,7 +1356,7 @@ describe("TEXT", () => {
const expectedY = [394, 42];

chart.$.text.texts.each(function(d, i) {
expect(+this.getAttribute("y")).to.be.closeTo(expectedY[i], 1);
expect(+this.getAttribute("y")).to.be.closeTo(expectedY[i], 2);
});
});

Expand All @@ -1368,7 +1368,7 @@ describe("TEXT", () => {
const expectedY = [389, 44];

chart.$.text.texts.each(function(d, i) {
expect(+this.getAttribute("y")).to.be.closeTo(expectedY[i], 1);
expect(+this.getAttribute("y")).to.be.closeTo(expectedY[i], 2);
});
});

Expand All @@ -1382,7 +1382,7 @@ describe("TEXT", () => {
chart.$.text.texts.each(function(d, i) {
const y = +this.getAttribute("transform").match(/\s(\d+\.\d+)/)[1];

expect(y).to.be.closeTo(expectedY[i], 1);
expect(y).to.be.closeTo(expectedY[i], 2);
});
});

Expand All @@ -1396,7 +1396,7 @@ describe("TEXT", () => {
chart.$.text.texts.each(function(d, i) {
const y = +this.getAttribute("transform").match(/\s(\d+\.\d+)/)[1];

expect(y).to.be.closeTo(expectedY[i], 1);
expect(y).to.be.closeTo(expectedY[i], 2);
});
});
});
Expand Down

0 comments on commit 7098f19

Please sign in to comment.