-
Notifications
You must be signed in to change notification settings - Fork 0
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
SLVUU-117 add type guard for layoutJSON #133
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.
Do we have any automated tests for this? How much do we gain by making one at this stage?
I am going to add some unit tests for useLayoutManager as there is none at the moment. |
…LVUU-117-type-guard-for-layout
f9c7477
to
21f2303
Compare
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.
A few comments on the tests. I haven't looked too closely at the setup/mocking because it's not something I'm familiar with - I'm happy with that side of it if you're satisfied it's all working properly.
vuu-ui/packages/vuu-shell/test/layout-management/useLayoutManager.test.tsx
Show resolved
Hide resolved
vuu-ui/packages/vuu-shell/test/layout-management/useLayoutManager.test.tsx
Outdated
Show resolved
Hide resolved
vuu-ui/packages/vuu-shell/test/layout-management/useLayoutManager.test.tsx
Show resolved
Hide resolved
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.
I feel like there should be some more edge cases for the isLayoutJSON
tests, but I can't think of any.
Changes: