Skip to content

Commit b39741a

Browse files
committed
add delete backup version test
1 parent 98c1b34 commit b39741a

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

spec/integ/crypto/crypto.spec.ts

+7
Original file line numberDiff line numberDiff line change
@@ -2532,6 +2532,13 @@ describe.each(Object.entries(CRYPTO_BACKENDS))("crypto (%s)", (backend: string,
25322532
expect(nextVersion).toBeDefined();
25332533
expect(nextVersion).not.toEqual(currentVersion);
25342534
expect(nextKey).not.toEqual(currentBackupKey);
2535+
2536+
// The API is deprecated but has been modified to work with both crypto backend
2537+
// ensure that it works anyhow
2538+
await aliceClient.deleteKeyBackupVersion(nextVersion!);
2539+
await aliceClient.getCrypto()!.checkKeyBackupAndEnable();
2540+
// XXX Legacy is not updating 4S when doing that, should ensure that rust implem does it.
2541+
expect(await aliceClient.getCrypto()!.getActiveSessionBackupVersion()).toBeNull();
25352542
});
25362543
});
25372544

0 commit comments

Comments
 (0)