mirror of
https://github.com/bitwarden/browser
synced 2025-12-16 16:23:44 +00:00
Fix SDK typings (#16223)
* fix SDK typings for `uuidAsString` * add `load_flags` to mock SDK instance
This commit is contained in:
@@ -232,6 +232,7 @@ function createMockClient(): MockProxy<BitwardenClient> {
|
||||
client.platform.mockReturnValue({
|
||||
state: jest.fn().mockReturnValue(mock()),
|
||||
free: mock(),
|
||||
load_flags: jest.fn(),
|
||||
});
|
||||
return client;
|
||||
}
|
||||
|
||||
@@ -145,9 +145,9 @@ export class CopyCipherFieldService {
|
||||
if (action.event !== undefined) {
|
||||
await this.eventCollectionService.collect(
|
||||
action.event,
|
||||
uuidAsString(cipher.id),
|
||||
cipher.id ? uuidAsString(cipher.id) : undefined,
|
||||
false,
|
||||
uuidAsString(cipher.organizationId),
|
||||
cipher.organizationId ? uuidAsString(cipher.organizationId) : undefined,
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user