diff --git a/packages/shorebird_cli/test/src/commands/patch/patch_command_test.dart b/packages/shorebird_cli/test/src/commands/patch/patch_command_test.dart index bd17c0624..90a6222af 100644 --- a/packages/shorebird_cli/test/src/commands/patch/patch_command_test.dart +++ b/packages/shorebird_cli/test/src/commands/patch/patch_command_test.dart @@ -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.''', @@ -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);