Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Does Mock Firebase Storage supports 'delete()' functionality? #38

Open
faheem4797 opened this issue Sep 24, 2024 · 2 comments
Open

Does Mock Firebase Storage supports 'delete()' functionality? #38

faheem4797 opened this issue Sep 24, 2024 · 2 comments

Comments

@faheem4797
Copy link

For reference:

await mockFirebaseStorage.refFromURL(imageUrl).delete();

final newUrl = await mockFirebaseStorage.refFromURL(imageUrl).getDownloadURL();

newUrl should throw an exception but it gets the actual url meaning the file isn't deleted

@atn832
Copy link
Owner

atn832 commented Oct 15, 2024

Yep, looks like a bug. If you have time, would you mind proposing a PR? I'm not sure when I could fix this.

@faheem4797
Copy link
Author

looks like the issue is in the getDownloadURL() function. will look into it later tonight

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants