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';
1717T runWithTiming<T>(T callback()) {
1818 var stopwatch = clock.stopwatch()..start();
1919 var result = callback();
20- print(" It took ${stopwatch.elapsed}!" );
20+ print(' It took ${stopwatch.elapsed}!' );
2121 return result;
2222}
2323```
@@ -35,13 +35,13 @@ import 'package:fake_async/fake_async.dart';
3535import 'package:test/test.dart';
3636
3737void main() {
38- test(" runWithTiming() prints the elapsed time" , () {
39- new FakeAsync().run((async) {
38+ test(' runWithTiming() prints the elapsed time' , () {
39+ FakeAsync().run((async) {
4040 expect(() {
4141 runWithTiming(() {
42- async.elapse(new Duration(seconds: 10));
42+ async.elapse(Duration(seconds: 10));
4343 });
44- }, prints(" It took 0:00:10.000000!" ));
44+ }, prints(' It took 0:00:10.000000!' ));
4545 });
4646 });
4747}
You can’t perform that action at this time.
0 commit comments