mock library
An opt-in testing helper: a mockable instance wrapper around the static Bluebird API.
Bluebird's API is static and cannot be mocked directly. Depend on
BluebirdMockable instead of calling Bluebird directly in the code you
want to test, then substitute a mock in your tests:
import 'package:bluebird/mock.dart';
This library is intentionally not exported by package:bluebird/bluebird.dart,
so it is only compiled into apps that explicitly import it.
Classes
- BluebirdMockable
-
Instance wrapper around the static Bluebird API so it can be mocked or
faked in tests. Every member simply forwards to the matching
Bluebirdstatic; override them in a subclass or a mocking framework (e.g. mocktail).