mirror of
https://github.com/bitwarden/browser
synced 2026-02-02 17:53:41 +00:00
fix test
This commit is contained in:
@@ -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];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user