Skip to content

Commit

Permalink
imporve tests
Browse files Browse the repository at this point in the history
  • Loading branch information
felangel committed Jan 17, 2025
1 parent f62aaf1 commit 9cd1175
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -821,6 +821,9 @@ void main() {
exitsWithCode(ExitCode.usage),
);

verify(
() => codePushClientWrapper.getReleases(appId: appId),
).called(1);
verify(
() => logger.warn(
'''No ${releasePlatform.displayName} releases found for app $appId. You must first create a release before you can create a patch.''',
Expand Down Expand Up @@ -867,6 +870,9 @@ void main() {

test('uses the latest version', () async {
await expectLater(runWithOverrides(command.run), completes);
verify(
() => codePushClientWrapper.getReleases(appId: appId),
).called(1);
verify(
() => patcher.buildPatchArtifact(releaseVersion: releaseVersion),
).called(1);
Expand Down

0 comments on commit 9cd1175

Please sign in to comment.