mirror of
https://github.com/smogon/pokemon-showdown.git
synced 2026-05-17 10:46:53 -05:00
17 lines
506 B
JavaScript
17 lines
506 B
JavaScript
/**
|
|
* Tests for Gen 1 randomized formats
|
|
*/
|
|
'use strict';
|
|
|
|
const assert = require('../assert');
|
|
const {testTeam} = require('./tools');
|
|
|
|
describe('[Gen 1] Random Battle', () => {
|
|
const options = {format: 'gen1randombattle'};
|
|
|
|
const badPokemon = ['Magikarp', 'Weedle', 'Kakuna', 'Caterpie', 'Metapod'];
|
|
it(`should not give bad Pokémon as leads (${badPokemon.join(', ')})`, () => {
|
|
testTeam(options, team => assert(!badPokemon.includes(team[0].species), `${team[0].species} is a bad lead`));
|
|
});
|
|
});
|