Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(metadata-sidebar): mock storybook queries for MetadataSidebarRedesign #3699

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

wpiesiak
Copy link
Contributor

@wpiesiak wpiesiak commented Oct 7, 2024

Description

Mock API requests data in MetadataSidebarRedesign stories

@wpiesiak wpiesiak requested review from a team as code owners October 7, 2024 14:42
@wpiesiak wpiesiak changed the title Metadata mock queries chore(metadata-sidebar): mock storybook queries for MetadataSidebarRedesign Oct 8, 2024
mockEnterpriseMetadataTemplates,
mockFileRequest,
mockMetadataInstances,
} from './__mocks__/MetadataSidebarRedesignedMocks';

const fileIdWithMetadata = global.FILE_ID;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

shouldn't we import the variable from mock data now or it doesn't matter here?

mockMetadataInstances,
} from '../__mocks__/MetadataSidebarRedesignedMocks';

const fileIdWithMetadata = fileId;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can't it be named using fileIdWithMetadata when it's defined?

$type: 'myTemplate-453ffc2f-bf5a-464c-a004-476a4eac20fd',
$parent: 'file_415542803939',
$typeVersion: 1,
$template: 'myTemplate',
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't this be templateKey?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants