Fix stupid test failing

This commit is contained in:
AJ Fontaine 2025-03-28 13:33:36 -04:00
parent d2b0a3b5f6
commit 59617cfb34
2 changed files with 10 additions and 2 deletions

View File

@ -63,7 +63,15 @@ export const DepartmentStoreSaleEncounter: MysteryEncounter = MysteryEncounterBu
.withQuery(`${namespace}:query`)
.withOption(
MysteryEncounterOptionBuilder.newOptionWithMode(MysteryEncounterOptionMode.DISABLED_OR_DEFAULT)
.withPrimaryPokemonRequirement(new CompatibleMoveRequirement(Moves.PROTECT)) // Check Protect in compatible tms yeah this sucks
.withPrimaryPokemonRequirement(
new CompatibleMoveRequirement([
Moves.PROTECT,
Moves.TERA_BLAST,
Moves.INFESTATION,
Moves.BOUNCE,
Moves.ELECTROWEB,
]),
) // Check Protect in compatible tms yeah this sucks
.withDialogue({
buttonLabel: `${namespace}:option.1.label`,
buttonTooltip: `${namespace}:option.1.tooltip`,

View File

@ -84,7 +84,7 @@ describe("Department Store Sale - Mystery Encounter", () => {
describe("Option 1 - TM Shop", () => {
it("should have the correct properties", () => {
const option = DepartmentStoreSaleEncounter.options[0];
expect(option.optionMode).toBe(MysteryEncounterOptionMode.DEFAULT);
expect(option.optionMode).toBe(MysteryEncounterOptionMode.DISABLED_OR_DEFAULT);
expect(option.dialogue).toBeDefined();
expect(option.dialogue).toStrictEqual({
buttonLabel: `${namespace}:option.1.label`,