File size: 678 Bytes
5c2ed06
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
/**
 * Tests for Gen 9 randomized formats
 */
'use strict';

const { testTeam, testAlwaysHasMove } = require('./tools');
const assert = require('../assert');

describe('[Gen 9] Random Battle (slow)', () => {
	const options = { format: 'gen9randombattle' };
	it("should always give Iron Bundle Freeze-Dry", () => {
		testAlwaysHasMove('ironbundle', options, 'freezedry');
	});
});

describe('[Gen 9] Monotype Random Battle (slow)', () => {
	const options = { format: 'gen9monotyperandombattle' };

	it('all Pokemon should share a common type', () => {
		testTeam({ ...options, rounds: 100 }, team => {
			assert.legalTeam(team, 'gen9customgame@@@sametypeclause');
		});
	});
});