We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 05e0408 commit 849eff2Copy full SHA for 849eff2
src/utils/dex/functions.test.js
@@ -130,15 +130,15 @@ describe('Dex utils function tests', () => {
130
describe('createFormMap', () => {
131
test('should add an ID to an existing form array', () => {
132
const formMap = { 25: [1, 2, 3] };
133
- const currentPokemon = { monsno: 25, id: 4 };
+ const currentPokemon = { monsno: 25, id: 4, valid_flag: 1 };
134
const expectedFormMap = { 25: [1, 2, 3, 4] };
135
const actualFormMap = createFormMap(formMap, currentPokemon);
136
expect(actualFormMap).toEqual(expectedFormMap);
137
});
138
139
test('should create a new form array if none exists for the monsno', () => {
140
141
- const currentPokemon = { monsno: 700, id: 1 };
+ const currentPokemon = { monsno: 700, id: 1, valid_flag: 1 };
142
const expectedFormMap = { 25: [1, 2, 3], 700: [1] };
143
144
src/utils/dex/name.test.js
@@ -134,7 +134,7 @@ describe('Dex utils Name getters', () => {
it('should return the correct index for a valid form ID', () => {
expect(getPokemonFormId(25, 1027)).toBe(1);
expect(getPokemonFormId(133, 133)).toBe(0);
- expect(getPokemonFormId(800, 1353)).toBe(2);
+ expect(getPokemonFormId(493, 1200)).toBe(8);
it('should return -1 for an invalid form ID', () => {
0 commit comments