All files / owid-grapher/grapher/controls ScaleSelector.stories.tsx

100% Statements 47/47
100% Branches 2/2
100% Functions 2/2
100% Lines 47/47

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 181x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x
import * as React from "react"
import { ScaleSelector, ScaleSelectorManager } from "../controls/ScaleSelector"
import { ScaleType } from "../core/GrapherConstants"
import { observable } from "mobx"
 
export default {
    title: "ScaleSelector",
    component: ScaleSelector,
}
 
class MockScaleSelectorManager implements ScaleSelectorManager {
    @observable scaleType = ScaleType.log
}
 
export const Default = (): JSX.Element => (
    <ScaleSelector manager={new MockScaleSelectorManager()} />
)