File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
src/client/visualizations/bar-chart/improved-bar-chart/utils Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 1515 */
1616
1717import { expect } from "chai" ;
18+ import { Split } from "../../../../../common/models/split/split" ;
1819import { BarChartModel } from "./bar-chart-model" ;
1920import { getXDomain } from "./x-domain" ;
2021
2122describe ( "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} ) ;
You can’t perform that action at this time.
0 commit comments