Skip to content

Commit 9deddcf

Browse files
srawlinscopybara-github
authored andcommitted
Fix lint in examples.
PiperOrigin-RevId: 646496713
1 parent e99ba54 commit 9deddcf

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

example/example.dart

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
import 'dart:async';
2+
13
import 'package:mockito/annotations.dart';
24
import 'package:mockito/mockito.dart';
35
import 'package:test/test.dart';
@@ -92,7 +94,7 @@ void main() {
9294
when(cat.eatFood(any)).thenReturn(false);
9395

9496
// ... or plain arguments themselves
95-
when(cat.eatFood("fish")).thenReturn(true);
97+
when(cat.eatFood('fish')).thenReturn(true);
9698

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

204206
// Waiting for a call.
205-
chewHelper(cat);
207+
unawaited(chewHelper(cat));
206208
await untilCalled(cat.chew()); // This completes when cat.chew() is called.
207209

208210
// Waiting for a call that has already happened.

0 commit comments

Comments
 (0)