Skip to content

Commit

Permalink
Rebase, fix snapshots && test warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
pascalwengerter committed Mar 8, 2022
1 parent 5fd28db commit 1ffc38f
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -231,6 +231,8 @@ function getMountedWrapper(spaceResources = [], spaceItem = null, imageContent =
$client: {
files: {
getFileContents: jest.fn().mockImplementation(() => Promise.resolve('filecontent')),
// TODO: Add & reference space fixtures in line below
// fileInfo: jest.fn().mockImplementation(() => Promise.resolve(Files['/'][4])),
list: jest.fn(() => spaceResources)
}
}
Expand All @@ -243,7 +245,11 @@ function getMountedWrapper(spaceResources = [], spaceItem = null, imageContent =
options: {
disablePreviews: true
}
})
}),
user: () => ({
id: 'marie'
}),
getToken: jest.fn()
},
modules: {
Files: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,9 @@ function getMountedWrapper(activeFiles = []) {
getters: {
configuration: () => ({
server: 'https://example.com/'
}),
user: () => ({
id: 'marie'
})
},
actions: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ exports[`Spaces project view space image should show if given 1`] = `
<oc-drop-stub dropid="space-context-drop" toggle="#space-context-btn" position="right-start" mode="click" closeonclick="true" paddingsize="small" options="[object Object]"><input id="space-image-upload-input" type="file" name="file" multiple="multiple" tabindex="-1" accept="image/png,image/jpg,image/jpeg,image/gif">
<ul class="oc-list oc-files-context-actions">
<li class="oc-spaces-context-action oc-py-xs oc-px-s">
<oc-button-stub type="button" size="medium" variation="passive" appearance="raw" justifycontent="left" gapsize="medium">
<oc-button-stub type="button" size="medium" submit="button" variation="passive" appearance="raw" justifycontent="left" gapsize="medium">
<oc-icon-stub name="information" filltype="fill" accessiblelabel="" type="span" size="medium" variation="passive" color=""></oc-icon-stub>
Details
</oc-button-stub>
Expand Down Expand Up @@ -60,7 +60,7 @@ exports[`Spaces project view space readme should show if given 1`] = `
<oc-drop-stub dropid="space-context-drop" toggle="#space-context-btn" position="right-start" mode="click" closeonclick="true" paddingsize="small" options="[object Object]"><input id="space-image-upload-input" type="file" name="file" multiple="multiple" tabindex="-1" accept="image/png,image/jpg,image/jpeg,image/gif">
<ul class="oc-list oc-files-context-actions">
<li class="oc-spaces-context-action oc-py-xs oc-px-s">
<oc-button-stub type="button" size="medium" variation="passive" appearance="raw" justifycontent="left" gapsize="medium">
<oc-button-stub type="button" size="medium" submit="button" variation="passive" appearance="raw" justifycontent="left" gapsize="medium">
<oc-icon-stub name="information" filltype="fill" accessiblelabel="" type="span" size="medium" variation="passive" color=""></oc-icon-stub>
Details
</oc-button-stub>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ exports[`Spaces component should list spaces 1`] = `
<div id="space-context-drop-1" class="oc-drop oc-box-shadow-medium oc-rounded" options="[object Object]">
<div class="oc-card oc-card-body oc-rounded oc-background-secondary oc-p-s">
<ul class="oc-list oc-files-context-actions">
<li class="oc-files-context-action oc-px-s"><button class="oc-button oc-button-m oc-button-justify-content-left oc-button-gap-m oc-button-passive oc-button-passive-raw"><span class="oc-flex oc-icon oc-icon-m oc-icon-passive"><!----></span>
<li class="oc-files-context-action oc-px-s"><button type="button" class="oc-button oc-button-m oc-button-justify-content-left oc-button-gap-m oc-button-passive oc-button-passive-raw"><span class="oc-flex oc-icon oc-icon-m oc-icon-passive"><!----></span>
Details
</button></li>
</ul>
Expand Down

0 comments on commit 1ffc38f

Please sign in to comment.