mirror of
https://github.com/smogon/pokemon-showdown.git
synced 2026-05-11 06:54:10 -05:00
This makes it so we can use `assert.equal` instead of `assert.strictEqual`, which I think is more readable.
29 lines
1.0 KiB
JavaScript
29 lines
1.0 KiB
JavaScript
'use strict';
|
|
|
|
const assert = require('./../../assert');
|
|
const common = require('./../../common');
|
|
|
|
let battle;
|
|
|
|
describe('Thunder Wave', function () {
|
|
afterEach(function () {
|
|
battle.destroy();
|
|
});
|
|
|
|
it('should inflict paralysis on its target', function () {
|
|
battle = common.createBattle();
|
|
battle.setPlayer('p1', {team: [{species: "Jolteon", ability: 'quickfeet', moves: ['thunderwave']}]});
|
|
battle.setPlayer('p2', {team: [{species: "Vaporeon", ability: 'hydration', moves: ['aquaring']}]});
|
|
battle.makeChoices('move thunderwave', 'move aquaring');
|
|
assert.equal(battle.p2.active[0].status, 'par');
|
|
});
|
|
|
|
it('should not ignore natural type immunities', function () {
|
|
battle = common.createBattle();
|
|
battle.setPlayer('p1', {team: [{species: "Jolteon", ability: 'quickfeet', moves: ['thunderwave']}]});
|
|
battle.setPlayer('p2', {team: [{species: "Hippowdon", ability: 'sandforce', moves: ['slackoff']}]});
|
|
battle.makeChoices('move thunderwave', 'move slackoff');
|
|
assert.equal(battle.p2.active[0].status, '');
|
|
});
|
|
});
|