Fix test
This commit is contained in:
parent
83e0db5163
commit
d9f2dc2b90
|
@ -17,7 +17,9 @@ describe("AttachmentView", () => {
|
|||
attachment.fileName = "my filename";
|
||||
attachment.key = "encKey" as any;
|
||||
|
||||
jest.spyOn(SymmetricCryptoKey, "fromJSON").mockImplementation(() => "encKeyfromJSON" as any);
|
||||
jest
|
||||
.spyOn(SymmetricCryptoKey, "fromJSON")
|
||||
.mockImplementation((key: string) => (key + "fromJSON") as any);
|
||||
|
||||
const stringify = JSON.stringify(attachment);
|
||||
|
||||
|
|
Loading…
Reference in New Issue