Skip to content

Commit

Permalink
chore: minor improvements to example
Browse files Browse the repository at this point in the history
  • Loading branch information
felangel committed Mar 8, 2021
1 parent 15d0285 commit 016c762
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/mocktail/example/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,10 @@ void main() {
when(
() => cat.likes('fish', isHungry: any(named: 'isHungry')),
).thenReturn(true);
expect(cat.likes('fish'), isTrue);
expect(cat.likes('fish', isHungry: true), isTrue);

// // Verify the interaction.
verify(() => cat.likes('fish', isHungry: false)).called(1);
verify(() => cat.likes('fish', isHungry: true)).called(1);
});
});
}

0 comments on commit 016c762

Please sign in to comment.