Skip to content

Commit

Permalink
test: fix after reformat nick name
Browse files Browse the repository at this point in the history
  • Loading branch information
rafgugi committed Apr 9, 2024
1 parent ccbf645 commit a2dadf9
Showing 1 changed file with 21 additions and 21 deletions.
42 changes: 21 additions & 21 deletions src/family.util.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -306,24 +306,24 @@ describe('treesToPersonNode', () => {
test('without depth', () => {
const nodes = treesToPersonNode(trees);
expect(nodes).toEqual([
{ key: 'satyr', name: 'satyr', s: 'M', attributes: [], spouses: ['surtr', 'nala'] },
{ key: 'surtr', name: 'surtr', s: 'F', attributes: ['S'], spouses: [] },
{ key: 'hound', name: 'hound', s: 'M', attributes: [], spouses: ['alpha'], father: 'satyr', mother: 'surtr' },
{ key: 'alpha', name: 'alpha', s: 'F', attributes: [], spouses: [] },
{ key: 'ryora', name: 'ryora', s: 'M', attributes: [], spouses: [], father: 'hound', mother: 'alpha' },
{ key: 'nala', name: 'nala', s: 'F', attributes: [], spouses: [] },
{ key: 'mufasa', name: 'mufasa', s: 'M', attributes: [], spouses: [], father: 'satyr', mother: 'nala' },
{ key: 'satyr', name: 'Satyr', s: 'M', attributes: [], spouses: ['surtr', 'nala'] },
{ key: 'surtr', name: 'Surtr', s: 'F', attributes: ['S'], spouses: [] },
{ key: 'hound', name: 'Hound', s: 'M', attributes: [], spouses: ['alpha'], father: 'satyr', mother: 'surtr' },
{ key: 'alpha', name: 'Alpha', s: 'F', attributes: [], spouses: [] },
{ key: 'ryora', name: 'Ryora', s: 'M', attributes: [], spouses: [], father: 'hound', mother: 'alpha' },
{ key: 'nala', name: 'Nala', s: 'F', attributes: [], spouses: [] },
{ key: 'mufasa', name: 'Mufasa', s: 'M', attributes: [], spouses: [], father: 'satyr', mother: 'nala' },
]);
});

test('with depth 2', () => {
const nodes = treesToPersonNode(trees, 2);
expect(nodes).toEqual([
{ key: 'satyr', name: 'satyr', s: 'M', attributes: [], spouses: ['surtr', 'nala'] },
{ key: 'surtr', name: 'surtr', s: 'F', attributes: ['S'], spouses: [] },
{ key: 'hound', name: 'hound', s: 'M', attributes: [], spouses: [], father: 'satyr', mother: 'surtr' },
{ key: 'nala', name: 'nala', s: 'F', attributes: [], spouses: [] },
{ key: 'mufasa', name: 'mufasa', s: 'M', attributes: [], spouses: [], father: 'satyr', mother: 'nala' },
{ key: 'satyr', name: 'Satyr', s: 'M', attributes: [], spouses: ['surtr', 'nala'] },
{ key: 'surtr', name: 'Surtr', s: 'F', attributes: ['S'], spouses: [] },
{ key: 'hound', name: 'Hound', s: 'M', attributes: [], spouses: [], father: 'satyr', mother: 'surtr' },
{ key: 'nala', name: 'Nala', s: 'F', attributes: [], spouses: [] },
{ key: 'mufasa', name: 'Mufasa', s: 'M', attributes: [], spouses: [], father: 'satyr', mother: 'nala' },
]);
});

Expand All @@ -332,15 +332,15 @@ describe('treesToPersonNode', () => {
const trees = enrichTreeData(doubleFamilyData.trees, enrichingPeople);
const nodes = treesToPersonNode(trees);
expect(nodes).toEqual([
{ key: 'satyr', name: 'satyr', s: 'M', attributes: [], spouses: ['surtr', 'nala'] },
{ key: 'surtr', name: 'surtr', s: 'F', attributes: ['S'], spouses: [] },
{ key: 'hound', name: 'hound', s: 'M', attributes: [], spouses: ['alpha'], father: 'satyr', mother: 'surtr' },
{ key: 'alpha', name: 'alpha', s: 'F', attributes: [], spouses: [], father: 'saber', mother: 'angela' },
{ key: 'ryora', name: 'ryora', s: 'M', attributes: [], spouses: [], father: 'hound', mother: 'alpha' },
{ key: 'nala', name: 'nala', s: 'F', attributes: [], spouses: [] },
{ key: 'mufasa', name: 'mufasa', s: 'M', attributes: [], spouses: [], father: 'satyr', mother: 'nala' },
{ key: 'angela', name: 'angela', s: 'F', attributes: [], spouses: ['saber'] },
{ key: 'saber', name: 'saber', s: 'M', attributes: [], spouses: [] },
{ key: 'satyr', name: 'Satyr', s: 'M', attributes: [], spouses: ['surtr', 'nala'] },
{ key: 'surtr', name: 'Surtr', s: 'F', attributes: ['S'], spouses: [] },
{ key: 'hound', name: 'Hound', s: 'M', attributes: [], spouses: ['alpha'], father: 'satyr', mother: 'surtr' },
{ key: 'alpha', name: 'Alpha', s: 'F', attributes: [], spouses: [], father: 'saber', mother: 'angela' },
{ key: 'ryora', name: 'Ryora', s: 'M', attributes: [], spouses: [], father: 'hound', mother: 'alpha' },
{ key: 'nala', name: 'Nala', s: 'F', attributes: [], spouses: [] },
{ key: 'mufasa', name: 'Mufasa', s: 'M', attributes: [], spouses: [], father: 'satyr', mother: 'nala' },
{ key: 'angela', name: 'Angela', s: 'F', attributes: [], spouses: ['saber'] },
{ key: 'saber', name: 'Saber', s: 'M', attributes: [], spouses: [] },
]);
});
});
Expand Down

0 comments on commit a2dadf9

Please sign in to comment.