Skip to content

Commit

Permalink
Merge pull request #6406 from owncloud/reduceLogOutput/web-runtime/te…
Browse files Browse the repository at this point in the history
…sts/unit/components/Topbar/ApplicationsMenu.spec.js

[tests-only] stub oc-list element in ApplicationsMenu unit tests
  • Loading branch information
pascalwengerter authored Feb 10, 2022
2 parents f0a7a5e + fbbf389 commit 69b55c4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,8 @@ function getWrapper(applicationsList = []) {
'oc-button': true,
'oc-icon': true,
'oc-drop': true,
'router-link': true
'router-link': true,
'oc-list': true
},
directives: {
'oc-tooltip': jest.fn()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ exports[`ApplicationsMenu component should render navigation with button and men
<oc-icon-stub name="grid" size="large" class="oc-flex"></oc-icon-stub>
</oc-button-stub>
<oc-drop-stub drop-id="app-switcher-dropdown" toggle="#_appSwitcherButton" mode="click" padding-size="small" close-on-click="">
<oc-list class="applications-list">
<oc-list-stub class="applications-list">
<li>
<oc-button-stub type="router-link" to="/files" appearance="raw" variation="passive" class=""><span class="icon-box"><oc-icon-stub name="folder"></oc-icon-stub></span> <span>Files</span>
<!---->
Expand All @@ -17,7 +17,7 @@ exports[`ApplicationsMenu component should render navigation with button and men
<!---->
</oc-button-stub>
</li>
</oc-list>
</oc-list-stub>
</oc-drop-stub>
</nav>
`;

0 comments on commit 69b55c4

Please sign in to comment.