mirror of
https://github.com/PeWu/topola-viewer.git
synced 2026-03-12 02:23:46 +00:00
Fix test build failure
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user