1 parent 2458c51 commit 92f723eCopy full SHA for 92f723e
1 file changed
src/datasource/load_data.spec.ts
@@ -10,7 +10,9 @@ describe('loadFile', () => {
10
const file = readFileSync('src/datasource/testdata/test.ged');
11
const blob = new Blob([file]) as globalThis.Blob;
12
const {gedcom, images} = await loadFile(blob);
13
- expect(gedcom.length).toBe(4408);
+ // File length may differ between Linux and Windows due to line endings (\n vs \r\n)
14
+ // So, check for a set of values instead of exactly one value
15
+ expect([4408, 4765]).toContain(gedcom.length);
16
expect(images).toEqual(new Map());
17
});
18
0 commit comments