completes top-level property

Matcher completes

Matches a Future that completes successfully with a value.


To test that a Future completes with an exception, you can use throws and throwsA.

This returns an AsyncMatcher, so expect won't complete until the matched future does.


final Matcher completes = const _Completes(null)