mirror of
https://github.com/apache/superset.git
synced 2026-05-08 17:35:33 +00:00
feat(storybook): Co-habitating/Upgrading Storybooks to v7 (dependency madness ensues) (#26907)
This commit is contained in:
@@ -198,7 +198,7 @@ test('Click on Swap dataset option', async () => {
|
||||
test('Click on Edit dataset', async () => {
|
||||
const props = createProps();
|
||||
SupersetClientGet.mockImplementationOnce(
|
||||
async () => ({ json: { result: [] } } as any),
|
||||
async () => ({ json: { result: [] } }) as any,
|
||||
);
|
||||
render(<DatasourceControl {...props} />, {
|
||||
useRedux: true,
|
||||
@@ -223,7 +223,7 @@ test('Edit dataset should be disabled when user is not admin', async () => {
|
||||
props.user.roles = {};
|
||||
props.datasource.owners = [];
|
||||
SupersetClientGet.mockImplementationOnce(
|
||||
async () => ({ json: { result: [] } } as any),
|
||||
async () => ({ json: { result: [] } }) as any,
|
||||
);
|
||||
|
||||
render(<DatasourceControl {...props} />, {
|
||||
|
||||
Reference in New Issue
Block a user