import { KeePass2XmlImporter as Importer } from "jslib-common/importers/keepass2XmlImporter"; const TestData = ` KeePass 2016-12-31T21:33:52Z 2016-12-31T21:33:52Z 2016-12-31T21:33:52Z 365 2016-12-31T21:33:59Z -1 -1 False False True False False True AAAAAAAAAAAAAAAAAAAAAA== 2016-12-31T21:33:52Z AAAAAAAAAAAAAAAAAAAAAA== 2016-12-31T21:33:52Z 10 6291456 AAAAAAAAAAAAAAAAAAAAAA== AAAAAAAAAAAAAAAAAAAAAA== KvS57lVwl13AfGFLwkvq4Q== Root 48 2016-12-31T21:33:52Z 2016-12-31T21:33:52Z 2017-01-01T22:58:00Z 2016-12-31T21:33:52Z False 1 2016-12-31T21:33:52Z True null null AAAAAAAAAAAAAAAAAAAAAA== P0ParXgGMBW6caOL2YrhqQ== Folder2 a note about the folder 48 2016-12-31T21:43:30Z 2016-12-31T21:43:43Z 2017-01-01T22:58:00Z 2016-12-31T21:43:30Z False 1 2016-12-31T21:43:43Z True null null AAAAAAAAAAAAAAAAAAAAAA== fAa543oYlgnJKkhKag5HLw== 1 2016-12-31T21:34:13Z 2016-12-31T21:40:23Z 2016-12-31T21:40:23Z 2016-12-31T21:34:13Z False 0 2016-12-31T21:43:48Z att2 att2value attr1 att1value line1 line2 Notes This is a note!!! line1 line2 Password googpass Title Google URL google.com UserName googleuser True 0 fAa543oYlgnJKkhKag5HLw== 0 2016-12-31T21:34:13Z 2016-12-31T21:34:40Z 2016-12-31T21:34:40Z 2016-12-31T21:34:13Z False 0 2016-12-31T21:34:40Z Notes This is a note!!! line1 line2 Password googpass Title Google URL google.com UserName googleuser True 0 `; describe("KeePass2 Xml Importer", () => { it("should parse XML data", async () => { const importer = new Importer(); const result = await importer.parse(TestData); expect(result != null).toBe(true); }); });