Skip to content

Commit

Permalink
fix@pkmn/data test to account for dex-moves caching
Browse files Browse the repository at this point in the history
  • Loading branch information
scheibo committed Nov 18, 2024
1 parent e147b21 commit f9961fa
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions data/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -237,9 +237,9 @@ for (const [pkg, Dex] of Object.entries(DATA)) {
});

it('cached', () => {
const a = Gen(6).moves.get('Earthquake');
const b = Gen(6).moves.get('Earthquake');
const c = Gen(7).moves.get('Earthquake');
const a = Gen(1).moves.get('Earthquake');
const b = Gen(1).moves.get('Earthquake');
const c = Gen(2).moves.get('Earthquake');

expect(b).toBe(a);
expect(c).not.toBe(a);
Expand Down

0 comments on commit f9961fa

Please sign in to comment.