From b4f97c8f8c0e04b0bfeb5dc337543a2112a811e8 Mon Sep 17 00:00:00 2001 From: Salakar Date: Tue, 10 Jul 2018 22:17:11 +0100 Subject: [PATCH] [tests][storage] content tests - need expanding - verified on console --- bridge/e2e/storage/storage.e2e.js | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/bridge/e2e/storage/storage.e2e.js b/bridge/e2e/storage/storage.e2e.js index f5211185..50f28f5b 100644 --- a/bridge/e2e/storage/storage.e2e.js +++ b/bridge/e2e/storage/storage.e2e.js @@ -49,6 +49,18 @@ describe('storage()', () => { .downloadFile( `${firebase.storage.Native.DOCUMENT_DIRECTORY_PATH}/ok.jpeg` ); + await firebase + .storage() + .ref('/cat.gif') + .downloadFile( + `${firebase.storage.Native.DOCUMENT_DIRECTORY_PATH}/cat.gif` + ); + await firebase + .storage() + .ref('/hei.heic') + .downloadFile( + `${firebase.storage.Native.DOCUMENT_DIRECTORY_PATH}/hei.heic` + ); }); it('errors if permission denied', async () => { @@ -75,6 +87,20 @@ describe('storage()', () => { `${firebase.storage.Native.DOCUMENT_DIRECTORY_PATH}/ok.jpeg` ); + await firebase + .storage() + .ref('/uploadCat.gif') + .putFile( + `${firebase.storage.Native.DOCUMENT_DIRECTORY_PATH}/cat.gif` + ); + + await firebase + .storage() + .ref('/uploadHei.heic') + .putFile( + `${firebase.storage.Native.DOCUMENT_DIRECTORY_PATH}/hei.heic` + ); + uploadTaskSnapshot.state.should.eql(firebase.storage.TaskState.SUCCESS); uploadTaskSnapshot.bytesTransferred.should.eql( uploadTaskSnapshot.totalBytes