1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-15 15:53:27 +00:00

Calling processFolder method when adding ciphers on PsonoJsonImporter (#7984)

This commit is contained in:
aj-rosado
2024-02-22 17:51:44 +00:00
committed by GitHub
parent fda656afaa
commit f9539ef68b
3 changed files with 26 additions and 8 deletions

View File

@@ -230,10 +230,8 @@ describe("PSONO JSON Importer", () => {
const result = await importer.parse(FoldersTestDataJson);
expect(result != null).toBe(true);
const folders = result.folders;
// // Check that ciphers have a folder assigned to them
expect(result.ciphers.filter((c) => c.folderId === folders[0].id).length).toBeGreaterThan(0);
expect(result.ciphers.filter((c) => c.folderId === folders[1].id).length).toBeGreaterThan(0);
expect(result.ciphers.length).toEqual(result.folderRelationships.length);
});
it("should create collections if part of an organization", async () => {