1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-16 08:13:42 +00:00

Fix SDK typings (#16223)

* fix SDK typings for `uuidAsString`

* add `load_flags` to mock SDK instance
This commit is contained in:
Nick Krantz
2025-08-29 14:27:49 -05:00
committed by GitHub
parent ec950853bc
commit de928e9ba1
2 changed files with 3 additions and 2 deletions

View File

@@ -232,6 +232,7 @@ function createMockClient(): MockProxy<BitwardenClient> {
client.platform.mockReturnValue({ client.platform.mockReturnValue({
state: jest.fn().mockReturnValue(mock()), state: jest.fn().mockReturnValue(mock()),
free: mock(), free: mock(),
load_flags: jest.fn(),
}); });
return client; return client;
} }

View File

@@ -145,9 +145,9 @@ export class CopyCipherFieldService {
if (action.event !== undefined) { if (action.event !== undefined) {
await this.eventCollectionService.collect( await this.eventCollectionService.collect(
action.event, action.event,
uuidAsString(cipher.id), cipher.id ? uuidAsString(cipher.id) : undefined,
false, false,
uuidAsString(cipher.organizationId), cipher.organizationId ? uuidAsString(cipher.organizationId) : undefined,
); );
} }