mirror of
https://github.com/smogon/pokemon-showdown-client.git
synced 2026-04-25 07:57:01 -05:00
Files meant to be served have been moved into `play.pokemonshowdown.com/` and `pokemonshowdown.com/`. We now have three directories for the three subdomains handled by this repo: - `pokemonshowdown.com/` - `play.pokemonshowdown.com/` - `replay.pokemonshowdown.com/` Naming them after the subdomains will make it much easier to tell where the files for each go. The diff is probably useless; it'll be easier if you just look at the new tree: https://github.com/smogon/pokemon-showdown-client/tree/reorganize
23 lines
719 B
JavaScript
23 lines
719 B
JavaScript
const assert = require('assert').strict;
|
|
|
|
try {
|
|
global.BattlePokedex = require('../play.pokemonshowdown.com/data/pokedex.js').BattlePokedex;
|
|
} catch (err) {}
|
|
require('../play.pokemonshowdown.com/js/battle-dex-data.js');
|
|
require('../play.pokemonshowdown.com/js/battle-dex.js');
|
|
require('../play.pokemonshowdown.com/js/battle-tooltips.js');
|
|
|
|
describe('EV Guesser', () => {
|
|
|
|
(global.BattlePokedex ? it : it.skip)('should guess well', () => {
|
|
const guesser = new BattleStatGuesser('gen7ou');
|
|
let guess = guesser.guess({
|
|
species: 'Arcanine',
|
|
item: 'Choice Band',
|
|
moves: ['Flare Blitz', 'Close Combat', 'Wild Charge', 'Extreme Speed'],
|
|
});
|
|
assert(guess.role === 'Fast Band');
|
|
});
|
|
|
|
});
|