Skip to content

Commit

Permalink
Merge pull request #21 from samuelematias/lesson21
Browse files Browse the repository at this point in the history
Lesson 21: Verifying interactions with mockito
  • Loading branch information
samuelematias committed Dec 2, 2020
2 parents 260038c + 3747c5a commit 46698b1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,9 @@ Calculator - [Caster.IO](https://caster.io) project to showcase testing techniqu

[Lesson 20: Stubbing asynchronous methods using mockito](https://caster.io/lessons/lesson-20-stubbing-asynchronous-methods-using-mockito) 馃憠馃従 [Branch](https://github.com/samuelematias/calculator_app/tree/lesson20)


[Lesson 21: Verifying interactions with mockito](https://caster.io/lessons/lesson-21-verifying-interactions-with-mockito) 馃憠馃従 [Branch](https://github.com/samuelematias/calculator_app/tree/lesson21)

## License

```
Expand Down
1 change: 1 addition & 0 deletions test/two_digit_operation_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ void main() {
);
await tester.pumpAndSettle();
expect(find.text('is 25.0'), findsOneWidget);
verify(calculator.add(3, 1)).called(1);
});
});

Expand Down

0 comments on commit 46698b1

Please sign in to comment.