mirror of
https://github.com/bitwarden/browser
synced 2025-12-15 07:43:35 +00:00
[PM-10791] Set favorite on import from ProtonPass (#10480)
* Update import test data with new fields Add new fields to the types file * Set favorites when importing from ProtonPass --------- Co-authored-by: Daniel James Smith <djsmith85@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
a3d2bb60d1
commit
3ef1080754
@@ -116,4 +116,14 @@ describe("Protonpass Json Importer", () => {
|
||||
|
||||
expect(ciphers.length).toBe(4);
|
||||
});
|
||||
|
||||
it("should set favorites", async () => {
|
||||
const testDataJson = JSON.stringify(testData);
|
||||
const result = await importer.parse(testDataJson);
|
||||
|
||||
const ciphers = result.ciphers;
|
||||
expect(ciphers[0].favorite).toBe(true);
|
||||
expect(ciphers[1].favorite).toBe(false);
|
||||
expect(ciphers[2].favorite).toBe(true);
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user