Skip to content

Commit

Permalink
Repair tests
Browse files Browse the repository at this point in the history
  • Loading branch information
vojtechpavlu committed Apr 10, 2024
1 parent dd3b8b4 commit 61147b5
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions tests/data/geographyRegistry.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ describe('getGeography function', () => {
name: 'Gondor',
capital: 'Minas Tirith',
abbr: 'gndr',
languages: ['English']
};

addGeography(country);
Expand All @@ -43,21 +44,29 @@ describe('getGeography function', () => {
name: 'Gondor',
capital: 'Minas Tirith',
abbr: 'gondor',
languages: ['English']
},
{
type: 'country',
name: 'Rohan',
capital: 'Edoras',
abbr: 'rohan',
languages: ["German"]
},
{ type: 'country', name: 'Rohan', capital: 'Edoras', abbr: 'rohan' },
{
type: 'country',
name: 'Rivendell',
capital: 'Rivendell',
abbr: 'rivendell',
},
languages: ['French']
}
];

const middleEarth: Region = {
type: 'region',
abbr: 'middle-earth-region',
name: 'Middle Earth',
subs: ['gondor', 'rohan', 'rivendell'],
subs: ['gondor', 'rohan', 'rivendell']
};

countries.forEach((c) => addGeography(c));
Expand Down

0 comments on commit 61147b5

Please sign in to comment.