Skip to content

Commit

Permalink
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
@@ -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.