Skip to content

Commit f25e582

Browse files
committed
Fix all the tests
1 parent b1cdf7b commit f25e582

File tree

7 files changed

+19
-19
lines changed

7 files changed

+19
-19
lines changed

plugins/pokedex-data-plugin/dex/egggroup.test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,8 +112,8 @@ describe('Dex Utils Egg Group Tests', () => {
112112
const MODE = "3.0";
113113
const validIds = [
114114
{ id: 0, count: 1 },
115-
{ id: 5, count: 370 },
116-
{ id: 10, count: 122 },
115+
{ id: 5, count: 345 },
116+
{ id: 10, count: 120 },
117117
];
118118

119119
const invalidIds = [

plugins/pokedex-data-plugin/dex/functions.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ describe('Dex utils function tests', () => {
195195
describe('3.0 Functions Tests', () => {
196196
const MODE = GAMEDATA3;
197197
test('should return the correct Pokemon ID for a different monsno and formno', () => {
198-
expect(getPokemonIdFromMonsNoAndForm(493, 1, MODE)).toEqual(1218);
198+
expect(getPokemonIdFromMonsNoAndForm(493, 1, MODE)).toEqual(1210);
199199
});
200200
it('Should return the form_no when provided accurate monsno and pokemon ID', () => {
201201
const result = getPokemonIdFromFormMap(3, 3, MODE); //Clone Venusaur

plugins/pokedex-data-plugin/dex/name.test.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -162,14 +162,14 @@ describe('Dex utils Name getters', () => {
162162
});
163163
test('getPokemonNames() returns an array of all pokemon names when maxMonsno is greater than the number of pokemon', () => {
164164
const names = getPokemonNames(10000, 0, MODE);
165-
expect(names).toHaveLength(1533);
165+
expect(names).toHaveLength(1440);
166166
expect(names[0]).toBe('Egg');
167167
expect(names[808]).toBe('Meltan');
168168
});
169169
it('should return the correct index for a valid form ID', () => {
170-
expect(getPokemonFormId(25, 1042, MODE)).toBe(1);
170+
expect(getPokemonFormId(25, 1042, MODE)).toBe(2);
171171
expect(getPokemonFormId(133, 133, MODE)).toBe(0);
172-
expect(getPokemonFormId(800, 1382, MODE)).toBe(2);
172+
expect(getPokemonFormId(800, 1362, MODE)).toBe(2);
173173
});
174174
});
175175
});

src/utils/dex/egggroup.test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,8 +112,8 @@ describe('Dex Utils Egg Group Tests', () => {
112112
const MODE = "3.0";
113113
const validIds = [
114114
{ id: 0, count: 1 },
115-
{ id: 5, count: 370 },
116-
{ id: 10, count: 122 },
115+
{ id: 5, count: 345 },
116+
{ id: 10, count: 120 },
117117
];
118118

119119
const invalidIds = [

src/utils/dex/evolution.test.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -917,10 +917,10 @@ describe('getEvolutionTree', () => {
917917
describe("3.0 Evolution Data Tests", () => {
918918
const MODE = "3.0";
919919
it('works for a Pokemon with alternate form Evolutions (different evo for each form)', () => {
920-
const pokemonId = 1198; // Burmy Trash Cloak
920+
const pokemonId = 1186; // Burmy Trash Cloak
921921
const result = getEvolutionTree(pokemonId, true, MODE);
922922
const expected = {
923-
pokemonId: 1198,
923+
pokemonId: 1186,
924924
evolutionDetails: null,
925925
evolvesInto: [
926926
{
@@ -932,7 +932,7 @@ describe('getEvolutionTree', () => {
932932
monsNos: [413],
933933
},
934934
evolvesInto: [],
935-
pokemonId: 1200,
935+
pokemonId: 1188,
936936
},
937937
{
938938
evolutionDetails: {
@@ -968,7 +968,7 @@ describe('getEvolutionTree', () => {
968968
},
969969
evolvesInto: [
970970
{
971-
pokemonId: 1123,
971+
pokemonId: 1112,
972972
evolutionDetails: {
973973
formNos: [1],
974974
levels: [36],
@@ -1015,7 +1015,7 @@ describe('getEvolutionTree', () => {
10151015
evolvesInto: [],
10161016
},
10171017
{
1018-
pokemonId: 1097,
1018+
pokemonId: 1085,
10191019
evolutionDetails: {
10201020
formNos: [1],
10211021
levels: [28],
@@ -1055,7 +1055,7 @@ describe('getEvolutionTree', () => {
10551055
evolvesInto: [],
10561056
},
10571057
{
1058-
pokemonId: 1101,
1058+
pokemonId: 1089,
10591059
evolutionDetails: {
10601060
formNos: [1],
10611061
levels: [32],
@@ -1125,7 +1125,7 @@ describe('getEvolutionTree', () => {
11251125
monsNos: [26],
11261126
},
11271127
evolvesInto: [],
1128-
pokemonId: 1059,
1128+
pokemonId: 1051,
11291129
},
11301130
],
11311131
},

src/utils/dex/functions.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ describe('Dex utils function tests', () => {
148148
describe('3.0 Functions Tests', () => {
149149
const MODE = "3.0";
150150
test('should return the correct Pokemon ID for a different monsno and formno', () => {
151-
expect(getPokemonIdFromMonsNoAndForm(493, 1, MODE)).toEqual(1218);
151+
expect(getPokemonIdFromMonsNoAndForm(493, 1, MODE)).toEqual(1210);
152152
});
153153
it('Should return the form_no when provided accurate monsno and pokemon ID', () => {
154154
const result = getPokemonIdFromFormMap(3, 3, MODE); //Clone Venusaur

src/utils/dex/name.test.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -162,14 +162,14 @@ describe('Dex utils Name getters', () => {
162162
});
163163
test('getPokemonNames() returns an array of all pokemon names when maxMonsno is greater than the number of pokemon', () => {
164164
const names = getPokemonNames(10000, 0, MODE);
165-
expect(names).toHaveLength(1533);
165+
expect(names).toHaveLength(1440);
166166
expect(names[0]).toBe('Egg');
167167
expect(names[808]).toBe('Meltan');
168168
});
169169
it('should return the correct index for a valid form ID', () => {
170-
expect(getPokemonFormId(25, 1042, MODE)).toBe(1);
170+
expect(getPokemonFormId(25, 1042, MODE)).toBe(2);
171171
expect(getPokemonFormId(133, 133, MODE)).toBe(0);
172-
expect(getPokemonFormId(800, 1382, MODE)).toBe(2);
172+
expect(getPokemonFormId(800, 1362, MODE)).toBe(2);
173173
});
174174
});
175175
});

0 commit comments

Comments
 (0)