Skip to content
This repository was archived by the owner on Jun 5, 2024. It is now read-only.

Commit

Permalink
Adjust consumer tests
Browse files Browse the repository at this point in the history
  • Loading branch information
JammingBen committed Jan 25, 2022
1 parent dedf0f1 commit c5d12ce
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/fileManagement.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,10 @@ class Files {
* @returns {Promise.<error>} string: error message, if any.
*/
getFileContents (path, options = {}) {
if (!this.helpers.getAuthorization()) {
return Promise.reject('Please specify an authorization first.')
}

if (!this.helpers.getCurrentUser()) {
return Promise.reject(new Error('Username or password was incorrect'))
}
Expand Down

0 comments on commit c5d12ce

Please sign in to comment.