Skip to content

Commit

Permalink
feat: add getAllPokemonSpecies query to get all Pokémon in the API
Browse files Browse the repository at this point in the history
  • Loading branch information
favna committed Oct 10, 2021
1 parent 5347d28 commit 482c28e
Show file tree
Hide file tree
Showing 13 changed files with 1,299 additions and 281 deletions.
2 changes: 1 addition & 1 deletion __tests__/scenarios/learnsets/getFuzzyLearnset.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { gCall } from '#test-utils/testUtils';

describe('getFuzzyLearnset', () => {
describe('Error Requests', () => {
test('GIVEN a pokestar pokemon THEN returns error', async () => {
test('GIVEN a pokestar Pokémon THEN returns error', async () => {
const data = await gCall({
source: getFuzzyLearnset,
variableValues: { pokemon: 'pokestarsmeargle', moves: ['dragonclaw'] }
Expand Down
16 changes: 8 additions & 8 deletions __tests__/scenarios/learnsets/getLearnset.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import { gCall } from '#test-utils/testUtils';

describe('getLearnset', () => {
describe('Successful requests', () => {
test('GIVEN valid pokemon and single move request THEN returns Learnset WITH all data', async () => {
test('GIVEN valid Pokémon and single move request THEN returns Learnset WITH all data', async () => {
const { data } = await gCall<'getLearnset'>({
source: getLearnset,
variableValues: { pokemon: 'charizard', moves: ['fireblast'] }
Expand Down Expand Up @@ -40,7 +40,7 @@ describe('getLearnset', () => {
});
});

test('GIVEN valid pokemon and 2 moves request THEN returns Learnset WITH all data', async () => {
test('GIVEN valid Pokémon and 2 moves request THEN returns Learnset WITH all data', async () => {
const { data } = await gCall<'getLearnset'>({
source: getLearnset,
variableValues: { pokemon: 'charizard', moves: ['fireblast', 'flamethrower'] }
Expand Down Expand Up @@ -87,7 +87,7 @@ describe('getLearnset', () => {
});
});

test('GIVEN valid pokemon and 2 moves and custom generation request THEN returns Learnset WITH all data', async () => {
test('GIVEN valid Pokémon and 2 moves and custom generation request THEN returns Learnset WITH all data', async () => {
const { data } = await gCall<'getLearnset'>({
source: getLearnset,
variableValues: { pokemon: 'charizard', moves: ['fireblast', 'flamethrower'], generation: 7 }
Expand All @@ -111,7 +111,7 @@ describe('getLearnset', () => {
});
});

test('GIVEN valid pokemon and event move and custom generation request THEN returns Learnset WITH all data', async () => {
test('GIVEN valid Pokémon and event move and custom generation request THEN returns Learnset WITH all data', async () => {
const { data } = await gCall<'getLearnset'>({
source: getLearnset,
variableValues: { pokemon: 'dragonite', moves: ['extremespeed'], generation: 5 }
Expand All @@ -132,7 +132,7 @@ describe('getLearnset', () => {
});
});

test('GIVEN valid pokemon and tutor move and custom generation request THEN returns Learnset WITH all data', async () => {
test('GIVEN valid Pokémon and tutor move and custom generation request THEN returns Learnset WITH all data', async () => {
const { data } = await gCall<'getLearnset'>({
source: getLearnset,
variableValues: { pokemon: 'pikachu', moves: ['risingvoltage'], generation: 8 }
Expand All @@ -150,7 +150,7 @@ describe('getLearnset', () => {
});
});

test('GIVEN valid pokemon and egg move and custom generation request THEN returns Learnset WITH all data', async () => {
test('GIVEN valid Pokémon and egg move and custom generation request THEN returns Learnset WITH all data', async () => {
const { data } = await gCall<'getLearnset'>({
source: getLearnset,
variableValues: { pokemon: 'bunnelby', moves: ['defensecurl'], generation: 6 }
Expand All @@ -168,7 +168,7 @@ describe('getLearnset', () => {
});
});

test('GIVEN valid pokemon and dream world move and custom generation request THEN returns Learnset WITH all data', async () => {
test('GIVEN valid Pokémon and dream world move and custom generation request THEN returns Learnset WITH all data', async () => {
const { data } = await gCall<'getLearnset'>({
source: getLearnset,
variableValues: { pokemon: 'vulpix', moves: ['darkpulse'], generation: 5 }
Expand Down Expand Up @@ -316,7 +316,7 @@ describe('getLearnset', () => {
});

describe('Error Requests', () => {
test('GIVEN an invalid pokemon THEN returns error', async () => {
test('GIVEN an invalid Pokémon THEN returns error', async () => {
const data = await gCall({
source: getLearnset,
variableValues: { pokemon: 'totally_invalid_pokemon' }
Expand Down
Loading

0 comments on commit 482c28e

Please sign in to comment.