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:
@@ -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;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user