Spaces:
Running
Running
File size: 1,750 Bytes
5c2ed06 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 |
'use strict';
const assert = require('./../../assert');
const common = require('./../../common');
let battle;
describe(`Ice Spinner`, () => {
afterEach(() => {
battle.destroy();
});
it(`should remove Terrains if the user is active and on the field`, () => {
battle = common.createBattle([[
{ species: 'wynaut', moves: ['icespinner'] },
], [
{ species: 'registeel', ability: 'psychicsurge', moves: ['sleeptalk'] },
]]);
battle.makeChoices();
assert.false(battle.field.isTerrain('psychicterrain'));
});
it.skip(`should not remove Terrains if the user faints from Life Orb`, () => {
battle = common.createBattle([[
{ species: 'shedinja', item: 'lifeorb', moves: ['icespinner'] },
{ species: 'wynaut', moves: ['sleeptalk'] },
], [
{ species: 'registeel', ability: 'psychicsurge', moves: ['sleeptalk'] },
]]);
battle.makeChoices();
assert(battle.field.isTerrain('psychicterrain'));
});
it(`should not remove Terrains if the user faints from Rocky Helmet`, () => {
battle = common.createBattle([[
{ species: 'shedinja', moves: ['icespinner'] },
{ species: 'wynaut', moves: ['sleeptalk'] },
], [
{ species: 'registeel', item: 'rockyhelmet', ability: 'psychicsurge', moves: ['sleeptalk'] },
]]);
battle.makeChoices();
assert(battle.field.isTerrain('psychicterrain'));
});
it.skip(`should not remove Terrains if the user is forced out via Red Card`, () => {
battle = common.createBattle([[
{ species: 'shedinja', moves: ['icespinner'] },
{ species: 'wynaut', moves: ['sleeptalk'] },
], [
{ species: 'registeel', item: 'redcard', ability: 'psychicsurge', moves: ['sleeptalk'] },
]]);
battle.makeChoices();
assert(battle.field.isTerrain('psychicterrain'));
});
});
|