Skip to content

Commit

Permalink
Add fake process calls to guide test
Browse files Browse the repository at this point in the history
  • Loading branch information
mmcc007 committed Nov 30, 2019
1 parent ca8816b commit d59ebf3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion test/validate_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -330,6 +330,7 @@ main() {
realIosDevice,
realAndroidDevice,
];
fakeProcessManager.calls = [callListIosDevices];
expect(
() async => await deviceGuide(
screens, allDevices, allEmulators, 'myScreenshots.yaml'),
Expand All @@ -342,12 +343,13 @@ main() {
expect(logger.errorText, '');
// print(logger.statusText);
// print(logger.errorText);

fakeProcessManager.verifyCalls();
}, skip: false, overrides: <Type, Generator>{
Logger: () => BufferLogger(),
// Logger: () => VerboseLogger(StdoutLogger()),
Platform: () => FakePlatform.fromPlatform(const LocalPlatform())
..operatingSystem = 'macos',
ProcessManager: () => fakeProcessManager,
});
});
}

0 comments on commit d59ebf3

Please sign in to comment.