Test some more illegal egg move combinations

This commit is contained in:
Marty-D
2018-08-21 13:47:21 -04:00
committed by GitHub
parent 009515fafe
commit 02332ce2fa

View File

@@ -126,6 +126,24 @@ describe('Team Validator', function () {
illegal = TeamValidator('gen2ou').validateTeam(team);
assert.strictEqual(illegal, null);
team = [
{species: 'skarmory', ability: 'keeneye', moves: ['curse', 'drillpeck']},
];
illegal = TeamValidator('gen3ou').validateTeam(team);
assert(illegal);
team = [
{species: 'skarmory', ability: 'keeneye', moves: ['whirlwind', 'drillpeck']},
];
illegal = TeamValidator('gen3ou').validateTeam(team);
assert(illegal);
team = [
{species: 'armaldo', ability: 'battlearmor', moves: ['knockoff', 'rapidspin']},
];
illegal = TeamValidator('gen3ou').validateTeam(team);
assert(illegal);
team = [
{species: 'snorlax', ability: 'immunity', moves: ['curse', 'pursuit']},
];