Skip to content

Commit

Permalink
Fix lint in examples.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 646496713
  • Loading branch information
srawlins authored and copybara-github committed Jun 25, 2024
1 parent e99ba54 commit 9deddcf
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions example/example.dart
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import 'dart:async';

import 'package:mockito/annotations.dart';
import 'package:mockito/mockito.dart';
import 'package:test/test.dart';
Expand Down Expand Up @@ -92,7 +94,7 @@ void main() {
when(cat.eatFood(any)).thenReturn(false);

// ... or plain arguments themselves
when(cat.eatFood("fish")).thenReturn(true);
when(cat.eatFood('fish')).thenReturn(true);

// ... including collections
when(cat.walk(['roof', 'tree'])).thenReturn(2);
Expand Down Expand Up @@ -202,7 +204,7 @@ void main() {
}

// Waiting for a call.
chewHelper(cat);
unawaited(chewHelper(cat));
await untilCalled(cat.chew()); // This completes when cat.chew() is called.

// Waiting for a call that has already happened.
Expand Down

0 comments on commit 9deddcf

Please sign in to comment.