forked from parse-community/parse-server
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove S3 File Adapter (parse-community#7324)
* remove s3 adapter * moved mock files adapter * Update package-lock.json
- Loading branch information
Showing
7 changed files
with
48 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
/** | ||
* A mock files adapter for testing. | ||
*/ | ||
class MockFilesAdapter { | ||
constructor(options = {}) { | ||
if (options.throw) { | ||
throw 'MockFilesAdapterConstructor'; | ||
} | ||
} | ||
createFile() { | ||
return 'MockFilesAdapterCreateFile'; | ||
} | ||
deleteFile() { | ||
return 'MockFilesAdapterDeleteFile'; | ||
} | ||
getFileData() { | ||
return 'MockFilesAdapterGetFileData'; | ||
} | ||
getFileLocation() { | ||
return 'MockFilesAdapterGetFileLocation'; | ||
} | ||
validateFilename() { | ||
return 'MockFilesAdapterValidateFilename'; | ||
} | ||
handleFileStream() { | ||
return 'MockFilesAdapterHandleFileStream'; | ||
} | ||
} | ||
|
||
module.exports = MockFilesAdapter; | ||
module.exports.default = MockFilesAdapter; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"name": "mock-files-adapter", | ||
"version": "1.0.0", | ||
"description": "Mock files adapter for tests.", | ||
"main": "index.js" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters