pokemon-showdown/test/sim/moves/struggle.js
2021-02-17 09:44:10 -05:00

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');
});
});