From 92f723e7fddaa16835e5f67610b27853b5d84d1b Mon Sep 17 00:00:00 2001 From: Adam Gross <634414+adamgross42@users.noreply.github.com> Date: Tue, 30 Dec 2025 01:20:33 -0800 Subject: [PATCH] Adjust load_data test to accommodate test.ged file length on Windows (#234) --- src/datasource/load_data.spec.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/datasource/load_data.spec.ts b/src/datasource/load_data.spec.ts index 45dc2f6..e925409 100644 --- a/src/datasource/load_data.spec.ts +++ b/src/datasource/load_data.spec.ts @@ -10,7 +10,9 @@ describe('loadFile', () => { const file = readFileSync('src/datasource/testdata/test.ged'); const blob = new Blob([file]) as globalThis.Blob; const {gedcom, images} = await loadFile(blob); - expect(gedcom.length).toBe(4408); + // File length may differ between Linux and Windows due to line endings (\n vs \r\n) + // So, check for a set of values instead of exactly one value + expect([4408, 4765]).toContain(gedcom.length); expect(images).toEqual(new Map()); });