pokemon-showdown/test/simulator/moves/smellingsalts.js
2015-02-15 13:35:43 -05:00

19 lines
618 B
JavaScript

var assert = require('assert');
var battle;
describe('Smelling Salts', function () {
afterEach(function () {
battle.destroy();
});
it('should cure a paralyzed target', function () {
battle = BattleEngine.Battle.construct();
battle.join('p1', 'Guest 1', 1, [{species: "Meloetta", ability: 'serenegrace', moves: ['smellingsalts', 'thunderwave']}]);
battle.join('p2', 'Guest 2', 1, [{species: "Dragonite", ability: 'multiscale', moves: ['roost']}]);
battle.choose('p1', 'move 2');
battle.commitDecisions();
battle.commitDecisions();
assert.notStrictEqual(battle.p2.active[0].status, 'par');
});
});