-
Notifications
You must be signed in to change notification settings - Fork 5
Feat: deck layer composer tests #3641
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
base: develop
Are you sure you want to change the base?
Conversation
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.
| it('should create BaseMapImageLayer for BasemapImage type', () => { | ||
| const dataview = createMockDataview({ | ||
| config: { type: DataviewType.BasemapImage }, | ||
| datasets: [ |
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.
maybe we could also create a mock dataset helper function?
| ) | ||
|
|
||
| await waitFor(() => { | ||
| expect(result.current).toHaveLength(1) |
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.
here it looks like it is only validating if the layer exists, maybe we should check that dataviewToDeckLayer was called 3 times?
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.
On line 165 is being asserted that the funcion is called once, it's only called once because it already handle the dataview with the 3 datasets merged

No description provided.