Skip to content

Commit

Permalink
cleanup (#81)
Browse files Browse the repository at this point in the history
  • Loading branch information
a14n authored and srawlins committed Oct 24, 2017
1 parent 6ed1244 commit 52fa6b6
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/src/invocation_matcher.dart
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ class _InvocationMatcher implements Matcher {

// Returns named arguments as an iterable of '<name>: <value>'.
static Iterable<String> _namedArgsAndValues(Invocation invocation) =>
invocation.namedArguments.keys.map/*<String>*/((name) =>
invocation.namedArguments.keys.map((name) =>
'${_symbolToString(name)}: ${invocation.namedArguments[name]}');

// This will give is a mangled symbol in dart2js/aot with minification
Expand Down
2 changes: 1 addition & 1 deletion lib/src/mock.dart
Original file line number Diff line number Diff line change
Expand Up @@ -726,7 +726,7 @@ typedef PostExpectation Expectation(x);
/// `when` or `verify` context (a call "for real"), Mockito will respond with
/// the stored canned response, if it can match the mock method parameters.
///
/// The response generators include [thenReturn], [thenAnswer], and [thenThrow].
/// The response generators include `thenReturn`, `thenAnswer`, and `thenThrow`.
///
/// See the README for more information.
Expectation get when {
Expand Down
2 changes: 1 addition & 1 deletion test/spy_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ void main() {

group("spy", () {
setUp(() {
mock = spy/*<RealClass>*/(new MockedClass(), new RealClass());
mock = spy(new MockedClass(), new RealClass());
});

test("should delegate to real object by default", () {
Expand Down

0 comments on commit 52fa6b6

Please sign in to comment.