Skip to content

Commit abccc65

Browse files
committed
test(storage): move seed helper to outermost block
it was needed in a few locations, so put it before all
1 parent 74f44eb commit abccc65

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

packages/storage/e2e/StorageReference.e2e.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,10 @@
1818
const { PATH, seed, WRITE_ONLY_NAME } = require('./helpers');
1919

2020
describe('storage() -> StorageReference', function () {
21+
before(async function () {
22+
await seed(PATH);
23+
});
24+
2125
describe('toString()', function () {
2226
it('returns the correct bucket path to the file', function () {
2327
const app = firebase.app();
@@ -136,9 +140,6 @@ describe('storage() -> StorageReference', function () {
136140
});
137141

138142
describe('getDownloadURL', function () {
139-
before(async function () {
140-
await seed(PATH);
141-
});
142143
it('should return a download url for a file', async function () {
143144
// This is frequently flaky in CI - but works sometimes. Skipping only in CI for now.
144145
if (!isCI) {

0 commit comments

Comments
 (0)