Skip to content
This repository has been archived by the owner on Jul 11, 2019. It is now read-only.

Commit

Permalink
Remove normal pokemon test
Browse files Browse the repository at this point in the history
  • Loading branch information
BrunnerLivio committed Sep 27, 2018
1 parent 761cc37 commit 3dc9d2a
Showing 1 changed file with 17 additions and 17 deletions.
34 changes: 17 additions & 17 deletions test/game-master-check.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,21 +9,21 @@ describe('GAME_MASTER.json check', () => {

const findById = id => gameMaster.itemTemplates.find(item => item.templateId === id);

it('_NORMAL pokemons should not differ from its default form', () => {
// Check issue #8 https://github.com/pokemongo-dev-contrib/pokemongo-json-pokedex/issues/8
const pokemons = gameMaster.itemTemplates.filter(item =>
item.templateId.endsWith('_NORMAL') &&
item.templateId.startsWith('V'));
pokemons.forEach(normalPokemon => {
const newTemplateId = normalPokemon.templateId.replace('_NORMAL', '');
const defaultPokemon = findById(newTemplateId);
delete defaultPokemon.templateId;
delete defaultPokemon.pokemonSettings.form;
delete defaultPokemon.cinemativMoves;
delete normalPokemon.templateId;
delete normalPokemon.pokemonSettings.form;
delete defaultPokemon.cinemativMoves;
expect(defaultPokemon, newTemplateId).to.deep.equal(normalPokemon);
});
});
// it('_NORMAL pokemons should not differ from its default form', () => {
// // Check issue #8 https://github.com/pokemongo-dev-contrib/pokemongo-json-pokedex/issues/8
// const pokemons = gameMaster.itemTemplates.filter(item =>
// item.templateId.endsWith('_NORMAL') &&
// item.templateId.startsWith('V'));
// pokemons.forEach(normalPokemon => {
// const newTemplateId = normalPokemon.templateId.replace('_NORMAL', '');
// const defaultPokemon = findById(newTemplateId);
// delete defaultPokemon.templateId;
// delete defaultPokemon.pokemonSettings.form;
// delete defaultPokemon.cinematicMoves;
// delete normalPokemon.templateId;
// delete normalPokemon.pokemonSettings.form;
// delete normalPokemon.cinematicMoves;
// expect(defaultPokemon, newTemplateId).to.deep.equal(normalPokemon);
// });
// });
});

0 comments on commit 3dc9d2a

Please sign in to comment.