1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-17 08:43:33 +00:00

[PM-5610] add eff long word list generator (#7748)

This commit is contained in:
✨ Audrey ✨
2024-02-07 13:24:32 -05:00
committed by GitHub
parent 82cb52a938
commit 6d79231476
10 changed files with 227 additions and 27 deletions

View File

@@ -1,9 +1,8 @@
import {
ENCRYPTED_HISTORY,
ENCRYPTED_USERNAME_SETTINGS,
EFF_USERNAME_SETTINGS,
PASSPHRASE_SETTINGS,
PASSWORD_SETTINGS,
PLAINTEXT_USERNAME_SETTINGS,
} from "./key-definitions";
describe("Key definitions", () => {
@@ -23,18 +22,10 @@ describe("Key definitions", () => {
});
});
describe("ENCRYPTED_USERNAME_SETTINGS", () => {
describe("BASIC_LATIN_SETTINGS", () => {
it("should pass through deserialization", () => {
const value = {};
const result = ENCRYPTED_USERNAME_SETTINGS.deserializer(value);
expect(result).toBe(value);
});
});
describe("PLAINTEXT_USERNAME_SETTINGS", () => {
it("should pass through deserialization", () => {
const value = {};
const result = PLAINTEXT_USERNAME_SETTINGS.deserializer(value);
const result = EFF_USERNAME_SETTINGS.deserializer(value);
expect(result).toBe(value);
});
});