Skip to content

Commit

Permalink
add test for multiple nations
Browse files Browse the repository at this point in the history
  • Loading branch information
Owen3H committed Jul 31, 2024
1 parent 7e713d9 commit 74ef539
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions tests/squaremap/nations.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,13 @@ describe('[Squaremap/Aurora] Nations', () => {
//@ts-ignore
expect(nation.name).toBe('R.O.C')
})

it('can get multiple nation', async () => {
const nations = await Aurora.Nations.get('SiBeRia', 'veNICE', 'verMOnt', 'vAult_citY') as SquaremapNation[]

expect(nations).toBeTruthy()
expect(nations.length).toBe(3)

assertType<SquaremapNation[]>(nations)
})
})

0 comments on commit 74ef539

Please sign in to comment.