Skip to content

SamuMazzi/firebase_storage_mocks

 
 

Repository files navigation

Mocks for Firebase Storage. Use this package to write unit tests involving Firebase Storage.

Usage

A simple usage example:

import 'package:firebase_storage_mocks/firebase_storage_mocks.dart';

main() {
  final storage = MockFirebaseStorage('someimage.png');
  final storageRef = storage.ref().child(filename);
  final image = File(filename);
  await storageRef.putFile(image);
  // Prints 'gs://some-bucket//someimage.png'.
  print(task.snapshot.ref.fullPath);
}

Features and bugs

Please file feature requests and bugs at the issue tracker.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Dart 100.0%