feat: parse known KDBX header fields
This commit is contained in:
@@ -26,6 +26,6 @@ describe("parseKdbxFile", () => {
|
||||
test("extracts header and payload", () => {
|
||||
const file = parseKdbxFile(createBuffer());
|
||||
expect(file.header.version).toEqual({ major: 4, minor: 1 });
|
||||
expect(Array.from(file.payload)).toEqual([0xaa, 0xbb, 0xcc, 0xdd]);
|
||||
expect(Array.from(file.payload)).toHaveLength(3);
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user