From a327c1067d7afdc96425eeb27688ceafcc96f108 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Przemek=20Wi=C4=99ch?= Date: Sat, 11 Jan 2025 00:02:18 +0100 Subject: [PATCH] Fix test build failure --- src/datasource/load_data.spec.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/datasource/load_data.spec.ts b/src/datasource/load_data.spec.ts index 48b60c1..cb65607 100644 --- a/src/datasource/load_data.spec.ts +++ b/src/datasource/load_data.spec.ts @@ -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);