Skip to content

Commit 93071a7

Browse files
committed
fix: unit test errors
Signed-off-by: Denis Golovin <dgolovin@redhat.com>
1 parent 930bb57 commit 93071a7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/extension.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020

2121
import type { AuthenticationGetSessionOptions, AuthenticationSession, ExtensionContext } from '@podman-desktop/api';
2222
import { authentication, commands } from '@podman-desktop/api';
23-
import { OrganizationService } from '@redhat-developer/rhsm-client';
23+
import { Organization } from './rh-api/subscription';
2424
import { afterEach, beforeEach, expect, suite, test, vi } from 'vitest';
2525

2626
import * as extension from './extension';
@@ -181,7 +181,7 @@ suite('signin command telemetry reports', () => {
181181
);
182182
vi.spyOn(subscription, 'isRedHatRegistryConfigured').mockReturnValue(true);
183183
vi.spyOn(podmanCli, 'getConnectionForRunningPodmanMachine').mockReturnValue('machine1');
184-
vi.spyOn(OrganizationService.prototype, 'checkOrgScaCapability').mockResolvedValue({ body: {} });
184+
vi.spyOn(Organization.prototype, 'checkOrgScaCapability').mockResolvedValue({ body: {} });
185185
await extension.activate(createExtContext());
186186
expect(commandFunctionCopy!).toBeDefined();
187187
await commandFunctionCopy!();

0 commit comments

Comments
 (0)