Add comments around the purpose of the test

This commit is contained in:
Manav Rathi 2024-02-07 19:30:47 +05:30
parent 5c93c14a02
commit d928429276

View file

@ -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()) {