All files / owid-grapher/grapher/sourcesTab SourcesTab.stories.tsx

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

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 { SynthesizeGDPTable } from "../../coreTable/OwidTableSynthesizers"
import * as React from "react"
import { SourcesTab } from "./SourcesTab"
 
export default {
    title: "SourcesTab",
    component: SourcesTab,
}
 
export const WithSources = (): JSX.Element => (
    <SourcesTab
        manager={{ columnsWithSources: SynthesizeGDPTable().columnsAsArray }}
    />
)
export const NoSources = (): JSX.Element => (
    <SourcesTab manager={{ columnsWithSources: [] }} />
)