pokemon-showdown/test/simulator/moves/thunderwave.js
Juanma Serrano c4ac8d6e2f Use strict mode and let and const instead of var
This commit also fixes some duplicated variable declarations.
2015-11-06 21:56:52 -05:00

27 lines
962 B
JavaScript

'use strict';
const assert = require('assert');
let battle;
describe('Thunder Wave', function () {
afterEach(function () {
battle.destroy();
});
it('should inflict paralysis on its target', function () {
battle = BattleEngine.Battle.construct();
battle.join('p1', 'Guest 1', 1, [{species: "Jolteon", ability: 'quickfeet', moves: ['thunderwave']}]);
battle.join('p2', 'Guest 2', 1, [{species: "Vaporeon", ability: 'hydration', moves: ['aquaring']}]);
battle.commitDecisions();
assert.strictEqual(battle.p2.active[0].status, 'par');
});
it('should not ignore natural type immunities', function () {
battle = BattleEngine.Battle.construct();
battle.join('p1', 'Guest 1', 1, [{species: "Jolteon", ability: 'quickfeet', moves: ['thunderwave']}]);
battle.join('p2', 'Guest 2', 1, [{species: "Hippowdon", ability: 'sandforce', moves: ['slackoff']}]);
battle.commitDecisions();
assert.strictEqual(battle.p2.active[0].status, '');
});
});