Skip to content

Commit

Permalink
Minor README tidy for Dart 2. (flutter#10)
Browse files Browse the repository at this point in the history
- Remove new
- use single quotes
  • Loading branch information
wills authored and kevmoo committed Apr 24, 2019
1 parent dfe8853 commit b886deb
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import 'package:clock/clock.dart';
T runWithTiming<T>(T callback()) {
var stopwatch = clock.stopwatch()..start();
var result = callback();
print("It took ${stopwatch.elapsed}!");
print('It took ${stopwatch.elapsed}!');
return result;
}
```
Expand All @@ -35,13 +35,13 @@ import 'package:fake_async/fake_async.dart';
import 'package:test/test.dart';
void main() {
test("runWithTiming() prints the elapsed time", () {
new FakeAsync().run((async) {
test('runWithTiming() prints the elapsed time', () {
FakeAsync().run((async) {
expect(() {
runWithTiming(() {
async.elapse(new Duration(seconds: 10));
async.elapse(Duration(seconds: 10));
});
}, prints("It took 0:00:10.000000!"));
}, prints('It took 0:00:10.000000!'));
});
});
}
Expand Down

0 comments on commit b886deb

Please sign in to comment.