Fix jest console error/Vue warning in unit tests
What does this MR do and why?
Currently , spec/frontend/diffs/components/app_spec.js
is causing vue warnings/console error on master. This MR fixes the warning below
console.error
[Vue warn]: Invalid prop: type check failed for prop "active". Expected Boolean, got Undefined
found in
---> <DynamicScrollerItem>
<DynamicScroller>
<DiffsApp>
<Root>`
Screenshots or screen recordings
No UI changes
How to set up and validate locally
Numbered steps to set up and validate the change are strongly suggested.
- Run the unit test in this branch
spec/frontend/diffs/components/app_spec.js
in your terminal vs master branch
See that there are no Vue warnings
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.
Edited by Deepika Guliani