Skip to content

Commit

Permalink
Fix unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
JammingBen committed Nov 24, 2022
1 parent 8ce4202 commit 5266ae8
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
import { computed, unref } from 'vue'
import { Resource } from 'web-client/src'
import { eventBus, queryItemAsString, useRouteQuery, useStore } from 'web-pkg/src'
import { eventBus, useStore } from 'web-pkg/src'
import { queryItemAsString } from 'web-pkg/src/composables/appDefaults'
import { useRouteQuery } from 'web-pkg/src/composables'
import { SideBarEventTopics } from '../sideBar'

export interface ScrollToResult {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ export const useResourcesViewDefaultsMock = (
isResourceInSelection: jest.fn(() => false),
sideBarOpen: ref(false),
sideBarActivePanel: ref(''),
scrollToResource: jest.fn(),
scrollToResourceFromRoute: jest.fn(),
...options
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ exports[`Projects view different files view states lists all available project s
<div class="spaces-list oc-px-m oc-mt-l">
<ul class="oc-list oc-my-rm oc-mx-rm oc-flex">
<li class="spaces-list-item oc-mb-m oc-mr-m">
<div data-space-id="2" class="spaces-list-card oc-card oc-card-default oc-rounded">
<div data-item-id="2" class="spaces-list-card oc-card oc-card-default oc-rounded">
<div class="oc-card-media-top oc-border-b">
<router-link-stub to="[object Object]">
<!----> <span class="space-default-image oc-px-m oc-py-m oc-icon oc-icon-xxl oc-icon-passive"><!----></span>
Expand All @@ -29,7 +29,7 @@ exports[`Projects view different files view states lists all available project s
</div>
</li>
<li class="spaces-list-item oc-mb-m oc-mr-m">
<div data-space-id="3" class="spaces-list-card oc-card oc-card-default oc-rounded state-trashed">
<div data-item-id="3" class="spaces-list-card oc-card oc-card-default oc-rounded state-trashed">
<div class="oc-card-media-top oc-border-b"><button type="button" class="oc-button oc-rounded oc-button-m oc-button-justify-content-center oc-button-gap-m oc-button-passive oc-button-passive-raw"><span class="oc-position-absolute space-disabled-indicator oc-tag oc-tag-m oc-tag-span"><span>Disabled</span></span> <span class="space-default-image oc-px-m oc-py-m oc-icon oc-icon-xxl oc-icon-passive"><!----></span></button></div>
<div class="oc-card-body oc-p-s">
<div class="oc-flex oc-flex-between oc-flex-middle">
Expand All @@ -44,7 +44,7 @@ exports[`Projects view different files view states lists all available project s
</div>
</li>
<li class="spaces-list-item oc-mb-m oc-mr-m">
<div data-space-id="1" class="spaces-list-card oc-card oc-card-default oc-rounded">
<div data-item-id="1" class="spaces-list-card oc-card oc-card-default oc-rounded">
<div class="oc-card-media-top oc-border-b">
<router-link-stub to="[object Object]">
<!----> <span class="space-default-image oc-px-m oc-py-m oc-icon oc-icon-xxl oc-icon-passive"><!----></span>
Expand Down

0 comments on commit 5266ae8

Please sign in to comment.