mirror of
https://github.com/PeWu/topola-viewer.git
synced 2026-07-25 05:01:50 +00:00
Change order of place display options
This commit is contained in:
@@ -13,7 +13,7 @@ describe('loadFile', () => {
|
||||
const {gedcom, images} = await loadFile(blob);
|
||||
// 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([4549, 4909]).toContain(gedcom.length);
|
||||
expect(images).toEqual(new Map());
|
||||
});
|
||||
|
||||
@@ -24,7 +24,7 @@ describe('loadFile', () => {
|
||||
});
|
||||
const blob = new Blob([Buffer.from(file)]) as globalThis.Blob;
|
||||
const {gedcom, images} = await loadFile(blob);
|
||||
expect(gedcom.length).toBe(4408);
|
||||
expect([4549, 4909]).toContain(gedcom.length);
|
||||
expect(images.size).toBe(1);
|
||||
});
|
||||
});
|
||||
|
||||
7
src/datasource/testdata/test.ged
vendored
7
src/datasource/testdata/test.ged
vendored
@@ -15,6 +15,9 @@
|
||||
0 @I1@ INDI
|
||||
1 NAME Bonifacy /Gibbs/
|
||||
1 SEX M
|
||||
1 BIRT
|
||||
2 DATE 18 JUN 1970
|
||||
2 PLAC Cyclone, Keating Township, McKean, Pennsylvania, United States
|
||||
1 FAMC @F3@
|
||||
1 FAMS @F1@
|
||||
1 NOTE a random note
|
||||
@@ -25,8 +28,8 @@
|
||||
1 NAME Jarmila /Valenta/
|
||||
1 SEX F
|
||||
1 BIRT
|
||||
2 DATE
|
||||
2 PLAC
|
||||
2 DATE 22 MAY 1975
|
||||
2 PLAC Prague, Bohemia, Austria-Hungary
|
||||
1 FAMC @F6@
|
||||
1 FAMS @F1@
|
||||
1 CHAN
|
||||
|
||||
Reference in New Issue
Block a user