Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
KwikKill committed Apr 12, 2024
1 parent 8b30474 commit bec2616
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/lol_api.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ describe('summonersByName', () => {

it('should return a summoner object when given valid input', async () => {
const lolapi = new LolApi();
const summoner = await lolapi.summonersByName(api_key, 'EUW1', 'KwikKill', client);
const summoner = await lolapi.summonersByName(api_key, 'EUW1', 'KwikKill#Swain', client);
expect(summoner).toHaveProperty('id');
expect(summoner).toHaveProperty('accountId');
expect(summoner).toHaveProperty('puuid');
Expand All @@ -88,7 +88,7 @@ describe('summonersByName', () => {
const lolapi = new LolApi();
const error = new Error('API call failed');
lolapi.apiCall = jest.fn().mockRejectedValue(error);
await expect(lolapi.summonersByName(api_key, 'EUW1', 'KwikKill', client)).rejects.toThrow(error);
await expect(lolapi.summonersByName(api_key, 'EUW1', 'KwikKill#Swain', client)).rejects.toThrow(error);
});
});

Expand Down

0 comments on commit bec2616

Please sign in to comment.