mirror of
https://github.com/smogon/pokemon-showdown.git
synced 2026-05-17 10:46:53 -05:00
37 lines
1.0 KiB
JavaScript
37 lines
1.0 KiB
JavaScript
/**
|
|
* Tests for Gen 5 randomized formats
|
|
*/
|
|
'use strict';
|
|
|
|
const assert = require('../assert');
|
|
const {testHiddenPower, testSet, testAlwaysHasMove} = require('./tools');
|
|
|
|
describe('[Gen 5] Random Battle', () => {
|
|
const options = {format: 'gen5randombattle'};
|
|
|
|
it('should prevent double Hidden Power', () => {
|
|
testHiddenPower('ampharos', options);
|
|
testHiddenPower('venusaur', options);
|
|
});
|
|
|
|
it('should give Venusaur four moves', () => {
|
|
testSet(
|
|
'venusaur',
|
|
{format: 'gen5randombattle', rounds: 1, seed: [2201, 2201, 2201, 2201]},
|
|
set => assert.equal(set.moves.length, 4, `got ${JSON.stringify(set.moves)}`)
|
|
);
|
|
});
|
|
|
|
it('should prevent unreleased HAs from being used', () => {
|
|
testSet('chandelure', options, set => assert.notEqual(set.ability, 'Shadow Tag'));
|
|
});
|
|
|
|
it('should not give Ursaring Eviolite', () => {
|
|
testSet('ursaring', options, set => assert.notEqual(set.item, 'Eviolite'));
|
|
});
|
|
|
|
it('should always give Watchog Return', () => {
|
|
testAlwaysHasMove('watchog', options, 'return');
|
|
});
|
|
});
|