Add comments around the purpose of the test
This commit is contained in:
parent
5c93c14a02
commit
d928429276
1 changed files with 6 additions and 0 deletions
|
@ -6,6 +6,10 @@ import { getFileNameSize } from '@ente/shared/logging/web';
|
|||
import isElectron from 'is-electron';
|
||||
import { getImportSuggestion } from 'utils/upload';
|
||||
|
||||
// This was for used to verify that converting from the browser readable stream
|
||||
// to the node readable stream correctly handles files that align on the 4 MB
|
||||
// data boundary. This expects a zip file containing random files of various
|
||||
// sizes starting from 1M to 20M.
|
||||
export const testZipFileReading = async () => {
|
||||
try {
|
||||
if (!isElectron()) {
|
||||
|
@ -73,6 +77,8 @@ export const testZipFileReading = async () => {
|
|||
}
|
||||
};
|
||||
|
||||
// This was used when fixing a bug around handling a zip file that has a photo
|
||||
// at the root.
|
||||
export const testZipWithRootFileReadingTest = async () => {
|
||||
try {
|
||||
if (!isElectron()) {
|
||||
|
|
Loading…
Add table
Reference in a new issue