[tests][storage] added ref toString test

This commit is contained in:
Salakar 2017-08-14 14:17:14 +01:00
parent 156e1a431c
commit 660c71c6ce
1 changed files with 11 additions and 1 deletions

View File

@ -1,4 +1,14 @@
function storageTests({ describe, it, firebase, tryCatch }) { import RNfirebase from './../../../firebase/firebase';
function storageTests({ describe, fdescribe, it, firebase, tryCatch }) {
fdescribe('ref(:path)', () => {
it('toString() should return the correct bucket path to the file', () => {
const app = RNfirebase.app();
firebase.native.storage().ref('/uploadNope.jpeg').toString()
.should.equal(`gs://${app.options.storageBucket}/uploadNope.jpeg`);
});
});
describe('downloadFile()', () => { describe('downloadFile()', () => {
it('it should error on download file if permission denied', () => { it('it should error on download file if permission denied', () => {
return new Promise((resolve, reject) => { return new Promise((resolve, reject) => {