Skip to content

Commit

Permalink
Fix tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
codyml committed Jul 26, 2022
1 parent eb3c111 commit 2f98bf0
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,12 @@ import { FeatureFlag } from '@superset-ui/core';
import { act, render, screen } from 'spec/helpers/testing-library';
import AddSliceCard from '.';

jest.mock('src/components/DynamicPlugins', () => ({
usePluginContext: () => ({
mountedPluginMetadata: { table: { name: 'Table' } },
}),
}));

const mockedProps = {
datasourceUrl: null,
datasourceName: '-',
Expand Down

0 comments on commit 2f98bf0

Please sign in to comment.