Skip to content

Commit

Permalink
test: update test data
Browse files Browse the repository at this point in the history
  • Loading branch information
favna committed Nov 27, 2023
1 parent f877532 commit ba8a92c
Show file tree
Hide file tree
Showing 11 changed files with 1,166 additions and 919 deletions.
5 changes: 5 additions & 0 deletions tests/scenarios/abilities/getAbilities.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ describe('getAbility', () => {
expect(data.getAbility).toEqual({
desc: null,
isFieldAbility: null,
isNonstandard: null,
name: 'Multiscale',
shortDesc: 'If this Pokémon is at full HP, damage taken from attacks is halved.',
serebiiPage: 'https://www.serebii.net/abilitydex/multiscale.shtml',
Expand All @@ -39,6 +40,7 @@ describe('getAbility', () => {
bulbapediaPage: 'https://bulbapedia.bulbagarden.net/wiki/Inner_Focus_(Ability)',
desc: 'This Pokémon cannot be made to flinch. This Pokémon is immune to the effect of the Intimidate Ability.',
isFieldAbility: null,
isNonstandard: null,
name: 'Inner Focus',
serebiiPage: 'https://www.serebii.net/abilitydex/inner_focus.shtml',
shortDesc: 'This Pokémon cannot be made to flinch. Immune to Intimidate.',
Expand All @@ -49,6 +51,7 @@ describe('getAbility', () => {
bulbapediaPage: 'https://bulbapedia.bulbagarden.net/wiki/Multiscale_(Ability)',
desc: null,
isFieldAbility: null,
isNonstandard: null,
name: 'Multiscale',
serebiiPage: 'https://www.serebii.net/abilitydex/multiscale.shtml',
shortDesc: 'If this Pokémon is at full HP, damage taken from attacks is halved.',
Expand All @@ -68,6 +71,7 @@ describe('getAbility', () => {
desc: "If this Pokémon is the target of an opposing Pokémon's move, that move loses one additional PP. Imprison, Snatch, and Tera Blast also lose one additional PP when used by an opposing Pokémon, but Sticky Web does not.",
isFieldAbility:
'If you have a Pokémon with Pressure at the front of your party (even if fainted), there is a 50% chance that a Pokémon will be forced to the upper bound of their encounter level range.',
isNonstandard: null,
name: 'Pressure',
serebiiPage: 'https://www.serebii.net/abilitydex/pressure.shtml',
shortDesc: "If this Pokémon is the target of a foe's move, that move loses one additional PP.",
Expand All @@ -78,6 +82,7 @@ describe('getAbility', () => {
bulbapediaPage: 'https://bulbapedia.bulbagarden.net/wiki/Multiscale_(Ability)',
desc: null,
isFieldAbility: null,
isNonstandard: null,
name: 'Multiscale',
serebiiPage: 'https://www.serebii.net/abilitydex/multiscale.shtml',
shortDesc: 'If this Pokémon is at full HP, damage taken from attacks is halved.',
Expand Down
41 changes: 24 additions & 17 deletions tests/scenarios/abilities/getFuzzyAbilities.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ describe('getFuzzyAbility', () => {
bulbapediaPage: 'https://bulbapedia.bulbagarden.net/wiki/Multiscale_(Ability)',
desc: null,
isFieldAbility: null,
isNonstandard: null,
name: 'Multiscale',
serebiiPage: 'https://www.serebii.net/abilitydex/multiscale.shtml',
shortDesc: 'If this Pokémon is at full HP, damage taken from attacks is halved.',
Expand All @@ -47,6 +48,7 @@ describe('getFuzzyAbility', () => {
{
desc: 'While this Pokémon is active, Explosion, Mind Blown, Misty Explosion, Self-Destruct, and the Aftermath Ability are prevented from having an effect.',
isFieldAbility: null,
isNonstandard: null,
name: 'Damp',
shortDesc: 'Prevents Explosion/Mind Blown/Misty Explosion/Self-Destruct/Aftermath while active.',
serebiiPage: 'https://www.serebii.net/abilitydex/damp.shtml',
Expand All @@ -56,6 +58,7 @@ describe('getFuzzyAbility', () => {
{
desc: "This Pokémon's Normal-type moves become Flying-type moves and have their power multiplied by 1.2. This effect comes after other effects that change a move's type, but before Ion Deluge and Electrify's effects.",
isFieldAbility: null,
isNonstandard: null,
name: 'Aerilate',
shortDesc: "This Pokémon's Normal-type moves become Flying type and have 1.2x power.",
serebiiPage: 'https://www.serebii.net/abilitydex/aerilate.shtml',
Expand All @@ -65,6 +68,7 @@ describe('getFuzzyAbility', () => {
{
desc: null,
isFieldAbility: null,
isNonstandard: null,
name: 'Air Lock',
shortDesc: 'While this Pokémon is active, the effects of weather conditions are disabled.',
serebiiPage: 'https://www.serebii.net/abilitydex/air_lock.shtml',
Expand All @@ -84,29 +88,32 @@ describe('getFuzzyAbility', () => {
{
desc: null,
isFieldAbility: null,
name: 'Water Compaction',
shortDesc: "This Pokémon's Defense is raised 2 stages after it is damaged by a Water-type move.",
serebiiPage: 'https://www.serebii.net/abilitydex/water_compaction.shtml',
smogonPage: 'https://www.smogon.com/dex/ss/abilities/water_compaction',
bulbapediaPage: 'https://bulbapedia.bulbagarden.net/wiki/Water_Compaction_(Ability)'
isNonstandard: null,
name: 'Embody Aspect (Hearthflame)',
shortDesc: "On switch-in, this Pokémon's Attack is raised by 1 stage.",
serebiiPage: 'https://www.serebii.net/abilitydex/embody_aspect_(hearthflame).shtml',
smogonPage: 'https://www.smogon.com/dex/ss/abilities/embody_aspect_(hearthflame)',
bulbapediaPage: 'https://bulbapedia.bulbagarden.net/wiki/Embody_Aspect_(Hearthflame)_(Ability)'
},
{
desc: 'Pokémon making contact with this Pokémon have their Ability swapped with this one. Does not affect Pokémon with the As One, Battle Bond, Comatose, Disguise, Gulp Missile, Hunger Switch, Ice Face, Illusion, Multitype, Neutralizing Gas, Power Construct, RKS System, Schooling, Shields Down, Stance Change, Wonder Guard, or Zen Mode Abilities.',
desc: null,
isFieldAbility: null,
name: 'Wandering Spirit',
shortDesc: 'Pokémon making contact with this Pokémon have their Ability swapped with this one.',
serebiiPage: 'https://www.serebii.net/abilitydex/wandering_spirit.shtml',
smogonPage: 'https://www.smogon.com/dex/ss/abilities/wandering_spirit',
bulbapediaPage: 'https://bulbapedia.bulbagarden.net/wiki/Wandering_Spirit_(Ability)'
isNonstandard: null,
name: 'Embody Aspect (Cornerstone)',
shortDesc: "On switch-in, this Pokémon's Defense is raised by 1 stage.",
serebiiPage: 'https://www.serebii.net/abilitydex/embody_aspect_(cornerstone).shtml',
smogonPage: 'https://www.smogon.com/dex/ss/abilities/embody_aspect_(cornerstone)',
bulbapediaPage: 'https://bulbapedia.bulbagarden.net/wiki/Embody_Aspect_(Cornerstone)_(Ability)'
},
{
desc: "This Pokémon's Attack is raised 1 stage after it is damaged by a Fire-type move. This Pokémon cannot be burned.",
desc: null,
isFieldAbility: null,
name: 'Thermal Exchange',
shortDesc: "This Pokémon's Attack is raised by 1 stage when hit by Fire moves; it can't be burned.",
serebiiPage: 'https://www.serebii.net/abilitydex/thermal_exchange.shtml',
smogonPage: 'https://www.smogon.com/dex/ss/abilities/thermal_exchange',
bulbapediaPage: 'https://bulbapedia.bulbagarden.net/wiki/Thermal_Exchange_(Ability)'
isNonstandard: null,
name: 'Embody Aspect (Wellspring)',
shortDesc: "On switch-in, this Pokémon's Special Defense is raised by 1 stage.",
serebiiPage: 'https://www.serebii.net/abilitydex/embody_aspect_(wellspring).shtml',
smogonPage: 'https://www.smogon.com/dex/ss/abilities/embody_aspect_(wellspring)',
bulbapediaPage: 'https://bulbapedia.bulbagarden.net/wiki/Embody_Aspect_(Wellspring)_(Ability)'
}
]);
});
Expand Down
14 changes: 7 additions & 7 deletions tests/scenarios/items/getFuzzyItems.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -108,15 +108,15 @@ describe('getFuzzyItem', () => {
sprite: "https://www.serebii.net/itemdex/sprites/koraidon'spokeball.png"
},
{
bulbapediaPage: "https://bulbapedia.bulbagarden.net/wiki/Ilima's_Normalium_Z",
desc: 'The Normalium Z you were entrusted with by Ilima. You were asked to place it on the pedestal at the back of Verdant Cavern.',
generationIntroduced: 7,
bulbapediaPage: 'https://bulbapedia.bulbagarden.net/wiki/Unremarkable_Teacup',
desc: 'Evolves Poltchageist into Sinistcha when used.',
generationIntroduced: 9,
isNonstandard: null,
name: "Ilima's Normalium Z",
serebiiPage: 'https://www.serebii.net/itemdex/ilimasnormaliumz.shtml',
name: 'Unremarkable Teacup',
serebiiPage: 'https://www.serebii.net/itemdex/unremarkableteacup.shtml',
shortDesc: null,
smogonPage: 'https://www.smogon.com/dex/sv/items/ilima-s-normalium-z',
sprite: "https://www.serebii.net/itemdex/sprites/ilima'snormaliumz.png"
smogonPage: 'https://www.smogon.com/dex/sv/items/unremarkable-teacup',
sprite: 'https://play.pokemonshowdown.com/sprites/itemicons/unremarkable-teacup.png'
}
]);
});
Expand Down
Loading

0 comments on commit ba8a92c

Please sign in to comment.