mirror of
https://github.com/bitwarden/browser
synced 2025-12-15 07:43:35 +00:00
[EC-582] Add domain object serialization (#3623)
This commit is contained in:
@@ -35,3 +35,8 @@ export function makeStaticByteArray(length: number, start = 0) {
|
||||
}
|
||||
return arr;
|
||||
}
|
||||
|
||||
/**
|
||||
* Use to mock a return value of a static fromJSON method.
|
||||
*/
|
||||
export const mockFromJson = (stub: any) => (stub + "_fromJSON") as any;
|
||||
|
||||
Reference in New Issue
Block a user