Implement getRegionPokemonList with queryFn and related test cases (fix)
parent
f4da542ecd
commit
54bd031092
|
@ -115,7 +115,7 @@ describe('pokedexApi', () => {
|
||||||
expect(pokemonListData?.previous).toBeUndefined();
|
expect(pokemonListData?.previous).toBeUndefined();
|
||||||
});
|
});
|
||||||
|
|
||||||
test('query getRegionPokemonList for kanto should return correct data in list', async () => {
|
test('query getRegionPokemonList for johto should return correct data in list', async () => {
|
||||||
await store.dispatch(
|
await store.dispatch(
|
||||||
pokedexApi.endpoints.getRegionPokemonList.initiate('johto'),
|
pokedexApi.endpoints.getRegionPokemonList.initiate('johto'),
|
||||||
);
|
);
|
||||||
|
|
Loading…
Reference in New Issue