mirror of
https://github.com/smogon/pokemon-showdown.git
synced 2026-05-17 18:51:43 -05:00
25 lines
519 B
JavaScript
25 lines
519 B
JavaScript
'use strict';
|
|
|
|
const assert = require('./../../assert');
|
|
const common = require('./../../common');
|
|
|
|
let battle;
|
|
|
|
describe('Struggle', function () {
|
|
afterEach(function () {
|
|
battle.destroy();
|
|
});
|
|
|
|
it(`should KO Shedinja in Gen 4 (and every other gen)`, function () {
|
|
battle = common.gen(4).createBattle([[
|
|
{species: 'Shedinja', moves: ['sleeptalk']},
|
|
], [
|
|
{species: 'Salamence', moves: ['taunt']},
|
|
]]);
|
|
|
|
battle.makeChoices();
|
|
battle.makeChoices();
|
|
assert.equal(battle.winner, 'Player 2');
|
|
});
|
|
});
|