test: improve overall test coverage

This commit is contained in:
thecodrr
2022-08-15 10:57:25 +05:00
parent 6d45c23e79
commit 87b778db94
25 changed files with 908 additions and 714 deletions

View File

@@ -65,15 +65,3 @@ export const EVENTS = {
};
export const CURRENT_DATABASE_VERSION = 5.6;
export function setUserPersonalizationBytes(userSalt) {
USER_PERSONALIZATION_HASH = new Uint8Array(
Buffer.from(userSalt, "base64")
).slice(0, 8);
if (
!USER_PERSONALIZATION_HASH.length ||
!USER_PERSONALIZATION_HASH.byteLength
)
USER_PERSONALIZATION_HASH = undefined;
}
export var USER_PERSONALIZATION_HASH = null;