Skip to content
This repository was archived by the owner on Feb 22, 2023. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
formatting
  • Loading branch information
szakarias committed May 8, 2017
commit 84cb5f59e7ef50c7ddba8d765f1c45903e538f9d
5 changes: 4 additions & 1 deletion packages/path-provider/test/path_provider_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,10 @@ void main() {

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We start a new test here. Should ideally be separated into two invocations of test.

directory = await getApplicationDocumentsDirectory();

expect(log, equals(<MethodCall>[new MethodCall('getApplicationDocumentsDirectory')]));
expect(
log,
equals(
<MethodCall>[new MethodCall('getApplicationDocumentsDirectory')]));
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A trailing comma may make dartfmt do something prettier.

expect(directory, isNull);

final String fakePath = "/foo/bar/baz";
Expand Down
8 changes: 6 additions & 2 deletions packages/url-launcher/test/url_launcher_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,14 @@ void main() {
});

await canLaunch('http://example.com/');
expect(log, equals(<MethodCall>[new MethodCall('canLaunch', 'http://example.com/')]));
expect(
log,
equals(
<MethodCall>[new MethodCall('canLaunch', 'http://example.com/')]));
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same here.

log.clear();

await launch('http://example.com/');
expect(log, equals(<MethodCall>[new MethodCall('launch', 'http://example.com/')]));
expect(log,
equals(<MethodCall>[new MethodCall('launch', 'http://example.com/')]));
});
}