Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

Add comments around the purpose of the test

Manav Rathid92842927640
diff --git a/apps/photos/tests/zip-file-reading.test.ts b/apps/photos/tests/zip-file-reading.test.ts
index 22f12947bf..367486878c 100644
--- a/apps/photos/tests/zip-file-reading.test.ts
+++ b/apps/photos/tests/zip-file-reading.test.ts
@@ -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()) {