π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
Fix the zip file related tests
Manav Rathi5c93c14a02fa
diff --git a/apps/photos/tests/zip-file-reading.test.ts b/apps/photos/tests/zip-file-reading.test.tsindex 2e088fd791..22f12947bf 100644--- a/apps/photos/tests/zip-file-reading.test.ts+++ b/apps/photos/tests/zip-file-reading.test.ts@@ -1,5 +1,5 @@import { DataStream } from 'types/upload';-import ImportService from 'services/importService';+import ElectronAPIs from '@ente/shared/electron';import { FILE_READER_CHUNK_SIZE, PICKED_UPLOAD_TYPE } from 'constants/upload';import { getFileStream, getElectronFileStream } from 'services/readerService';import { getFileNameSize } from '@ente/shared/logging/web';@@ -17,12 +17,12 @@ export const testZipFileReading = async () => {'upload test failed NEXT_PUBLIC_FILE_READING_TEST_ZIP_PATH missing');}- const files = await ImportService.getElectronFilesFromGoogleZip(+ const files = await ElectronAPIs.getElectronFilesFromGoogleZip(process.env.NEXT_PUBLIC_FILE_READING_TEST_ZIP_PATH);if (!files?.length) {throw Error(- `testZipFileReading Check failed β+ `testZipFileReading Check failed βNo files selected`);}@@ -84,7 +84,7 @@ export const testZipWithRootFileReadingTest = async () => {'upload test failed NEXT_PUBLIC_ZIP_WITH_ROOT_FILE_PATH missing');}- const files = await ImportService.getElectronFilesFromGoogleZip(+ const files = await ElectronAPIs.getElectronFilesFromGoogleZip(process.env.NEXT_PUBLIC_ZIP_WITH_ROOT_FILE_PATH);