1
0
mirror of https://github.com/bitwarden/browser synced 2026-02-02 17:53:41 +00:00
This commit is contained in:
jaasen-livefront
2025-10-30 10:36:29 -07:00
parent 7d947f5f01
commit c3ca6c8e71

View File

@@ -59,10 +59,15 @@ describe("Password Depot 17 Xml Importer", () => {
const importer = new PasswordDepot17XmlImporter();
const folder = new FolderView();
folder.name = "tempDB";
const actual = [folder];
const result = await importer.parse(PasswordTestData);
expect(result.folders).toEqual(actual);
expect(result.folders).toEqual([
expect.objectContaining({
id: "",
name: "tempDB",
revisionDate: expect.any(Date),
}),
]);
});
it("should parse password type into logins", async () => {
@@ -490,7 +495,7 @@ describe("Password Depot 17 Xml Importer", () => {
const collection = new CollectionView({
name: "tempDB",
organizationId: importer.organizationId,
id: null,
id: "",
});
const actual = [collection];