-
Notifications
You must be signed in to change notification settings - Fork 304
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
base: master
Are you sure you want to change the base?
Conversation
f42ad3f
to
a3eb1cf
Compare
a3eb1cf
to
ed9972a
Compare
mockEnterpriseMetadataTemplates, | ||
mockFileRequest, | ||
mockMetadataInstances, | ||
} from './__mocks__/MetadataSidebarRedesignedMocks'; | ||
|
||
const fileIdWithMetadata = global.FILE_ID; |
There was a problem hiding this comment.
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; |
There was a problem hiding this comment.
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', |
There was a problem hiding this comment.
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
?
Description
Mock API requests data in
MetadataSidebarRedesign
stories