File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ import 'package:clock/clock.dart';
17
17
T runWithTiming<T>(T callback()) {
18
18
var stopwatch = clock.stopwatch()..start();
19
19
var result = callback();
20
- print(" It took ${stopwatch.elapsed}!" );
20
+ print(' It took ${stopwatch.elapsed}!' );
21
21
return result;
22
22
}
23
23
```
@@ -35,13 +35,13 @@ import 'package:fake_async/fake_async.dart';
35
35
import 'package:test/test.dart';
36
36
37
37
void main() {
38
- test(" runWithTiming() prints the elapsed time" , () {
39
- new FakeAsync().run((async) {
38
+ test(' runWithTiming() prints the elapsed time' , () {
39
+ FakeAsync().run((async) {
40
40
expect(() {
41
41
runWithTiming(() {
42
- async.elapse(new Duration(seconds: 10));
42
+ async.elapse(Duration(seconds: 10));
43
43
});
44
- }, prints(" It took 0:00:10.000000!" ));
44
+ }, prints(' It took 0:00:10.000000!' ));
45
45
});
46
46
});
47
47
}
You can’t perform that action at this time.
0 commit comments