Skip to content
This repository has been archived by the owner on Nov 27, 2023. It is now read-only.

Commit

Permalink
minor fix in test for slots
Browse files Browse the repository at this point in the history
  • Loading branch information
kahboom committed Nov 9, 2021
1 parent 9abe532 commit cd23c4c
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/components/VisualizationSlot.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ import { IStepProps, IVizStepProps } from '../types';

describe.skip('VisualizationSlot.tsx', () => {
test('component renders correctly', () => {
const fakeStep: { viz: IVizStepProps; model: IStepProps } = {
const fakeSteps: { viz: IVizStepProps; model: IStepProps }[] = [];
const fakeStep = {
model: {
apiVersion: '',
id: '',
Expand All @@ -24,7 +25,9 @@ describe.skip('VisualizationSlot.tsx', () => {
},
};

render(<VisualizationSlot idx={0} step={fakeStep} />);
fakeSteps.push(fakeStep);

render(<VisualizationSlot steps={fakeSteps} />);
const element = screen.getByTestId('visualization-slot');
expect(element).toBeInTheDocument();
});
Expand Down

0 comments on commit cd23c4c

Please sign in to comment.