(data: string, options: unknown)
| 14 | } |
| 15 | |
| 16 | const blobOrBuffer = (data: string, options: unknown) => { |
| 17 | if (typeof Blob === 'undefined') { |
| 18 | return Buffer.from(data, 'utf8'); |
| 19 | } else { |
| 20 | return new Blob([JSON.stringify(data)], options); |
| 21 | } |
| 22 | }; |
| 23 | |
| 24 | describe('AngularFireStorage', () => { |
| 25 | let afStorage: AngularFireStorage; |