From 9cd11753442f5e6bcc62c2e01e6ba3c16d391c9d Mon Sep 17 00:00:00 2001 From: Felix Angelov Date: Fri, 17 Jan 2025 13:39:44 -0600 Subject: [PATCH] imporve tests --- .../test/src/commands/patch/patch_command_test.dart | 6 ++++++ 1 file changed, 6 insertions(+) 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);