Skip to content

Commit 3095317

Browse files
adrianmroz-allegroplesiecki
authored andcommitted
Fix test
1 parent 2fb3913 commit 3095317

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/client/visualizations/bar-chart/improved-bar-chart/utils/x-domain.mocha.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,19 +15,20 @@
1515
*/
1616

1717
import { expect } from "chai";
18+
import { Split } from "../../../../../common/models/split/split";
1819
import { BarChartModel } from "./bar-chart-model";
1920
import { getXDomain } from "./x-domain";
2021

2122
describe("getXDomain", () => {
22-
const mode = { continuousSplit: { reference: "foobar" } } as any as BarChartModel;
23+
const model = { continuousSplit: new Split({ reference: "foobar" }) } as any as BarChartModel;
2324
const datums = [
2425
{ foobar: 1, bazz: 42 },
2526
{ foobar: 65, bazz: 1, qvux: 42 },
2627
{ foobar: "dummy", qvux: 3 }
2728
];
2829

2930
it("should pick split values from datums", () => {
30-
const domain = getXDomain(datums, mode);
31+
const domain = getXDomain(datums, model);
3132
expect(domain).to.be.deep.equal([1, 65, "dummy"]);
3233
});
3334
});

0 commit comments

Comments
 (0)