Skip to content

Commit

Permalink
Add test
Browse files Browse the repository at this point in the history
  • Loading branch information
andrebastosdias committed Feb 10, 2025
1 parent b6b9960 commit 75ee365
Showing 1 changed file with 16 additions and 3 deletions.
19 changes: 16 additions & 3 deletions test/sim/misc/fainted-forme-regression.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ describe(`Fainted forme regression`, function () {
assert.hasAbility(pokemon, 'Drizzle');
});

it(`shouldn't revert Arceus-forms to base Arceus`, function () {
it(`should not revert Arceus-forms to base Arceus`, function () {
battle = common.createBattle([[
{species: 'arceusfire', ability: 'multitype', item: 'flameplate', moves: ['memento']},
{species: 'darkrai', moves: ['darkpulse']},
Expand All @@ -75,6 +75,19 @@ describe(`Fainted forme regression`, function () {
assert.hasAbility(pokemon, 'Multitype');
});

it("should not revert Eiscue-Noice to base Eiscue", function () {
battle = common.createBattle([[
{species: 'eiscuenoice', ability: 'iceface', moves: ['memento']},
{species: 'darkrai', moves: ['darkpulse']},
], [
{species: 'mareep', ability: 'static', moves: ['quickattack']},
]]);
const pokemon = battle.p1.active[0];
battle.makeChoices();
assert.species(pokemon, 'Eiscue-Noice');
assert.hasAbility(pokemon, 'Ice Face');
});

it("should revert Terastallized Morpeko-Hangry to base Morpeko", function () {
battle = common.createBattle([[
{species: 'Morpeko', ability: 'hungerswitch', moves: ['memento', 'sleeptalk']},
Expand All @@ -90,7 +103,7 @@ describe(`Fainted forme regression`, function () {
assert.hasAbility(pokemon, 'Hunger Switch');
});

it(`shouldn't revert Palafin-Hero to base Palafin`, function () {
it(`should not revert Palafin-Hero to base Palafin`, function () {
battle = common.createBattle([[
{species: 'palafin', ability: 'zerotohero', moves: ['memento']},
{species: 'darkrai', moves: ['darkpulse']},
Expand Down Expand Up @@ -122,7 +135,7 @@ describe(`Fainted forme regression`, function () {
assert.hasAbility(pokemon, 'Water Absorb');
});

it(`shouldn't revert Terapagos-Terastal to base Terapagos`, function () {
it(`should not revert Terapagos-Terastal to base Terapagos`, function () {
battle = common.createBattle([[
{species: 'terapagos', ability: 'terashift', moves: ['memento']},
{species: 'darkrai', moves: ['darkpulse']},
Expand Down

0 comments on commit 75ee365

Please sign in to comment.