Files
pokemon-showdown/test/sim/items/ejectbutton.js
André Bastos Dias a7ce30c068 Champions: Add a lot of tests (#12361)
* Champions: Fix Emergency Exit + Sheer Force, Add a lot of Champions tests

* Code refactor

* Chain checks
2026-10-05 12:30:36 -06:00

26 lines
612 B
JavaScript

'use strict';
const assert = require('./../../assert');
const common = require('./../../common');
let battle;
describe('Eject Button', () => {
afterEach(() => {
battle.destroy();
});
it(`should be suppressed by Sheer Force`, () => {
battle = common.createBattle([[
{ species: 'Mew', item: 'ejectbutton', moves: ['sleeptalk'] },
{ species: 'Clefable', moves: ['sleeptalk'] },
], [
{ species: 'Wynaut', ability: 'sheerforce', moves: ['confusion'] },
]]);
battle.makeChoices();
assert.holdsItem(battle.p1.active[0], 'ejectbutton');
assert.equal(battle.requestState, 'move');
});
});