Skip to content

Commit

Permalink
Merge pull request #6420 from owncloud/reduceLogOutput/web-app-files/…
Browse files Browse the repository at this point in the history
…tests/unit/views/LocationPicker.spec.js

[tests-only] set user object in LocationPicker unit tests
  • Loading branch information
kulmann authored Feb 11, 2022
2 parents 5eac47f + 55c77f6 commit ef95737
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -438,7 +438,8 @@ describe('LocationPicker', () => {
currentFolder: currentFolder,
totalFilesSize: totalFilesSize,
totalFilesCount: totalFilesCount,
generalThemeName: generalThemeName
generalThemeName: generalThemeName,
user: { id: 'test' }
})
}

Expand Down
3 changes: 2 additions & 1 deletion packages/web-app-files/tests/unit/views/views.setup.js
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,8 @@ export const getStore = function ({
namespaced: true
}
}
}
},
user: { state: user }
}
})
}

0 comments on commit ef95737

Please sign in to comment.