Fix test build failure

This commit is contained in:
Przemek Więch
2025-01-11 00:02:18 +01:00
parent d2703f8433
commit a327c1067d

View File

@@ -7,7 +7,7 @@ describe('loadFile', () => {
it('loads GEDCOM file', async () => {
const file = readFileSync('src/datasource/testdata/test.ged');
const blob = new Blob([file]);
const blob = new Blob([file]) as globalThis.Blob;
const {gedcom, images} = await loadFile(blob);
expect(gedcom.length).toBe(4408);
expect(images).toEqual(new Map());
@@ -15,7 +15,7 @@ describe('loadFile', () => {
it('loads GEDZIP file', async () => {
const file = readFileSync('src/datasource/testdata/test.gdz');
const blob = new Blob([file]);
const blob = new Blob([file]) as globalThis.Blob;
const {gedcom, images} = await loadFile(blob);
expect(gedcom.length).toBe(4408);
expect(images.size).toBe(1);