mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-07-19 06:42:20 +02:00
Fix stupid test failing
This commit is contained in:
parent
d2b0a3b5f6
commit
59617cfb34
@ -63,7 +63,15 @@ export const DepartmentStoreSaleEncounter: MysteryEncounter = MysteryEncounterBu
|
|||||||
.withQuery(`${namespace}:query`)
|
.withQuery(`${namespace}:query`)
|
||||||
.withOption(
|
.withOption(
|
||||||
MysteryEncounterOptionBuilder.newOptionWithMode(MysteryEncounterOptionMode.DISABLED_OR_DEFAULT)
|
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({
|
.withDialogue({
|
||||||
buttonLabel: `${namespace}:option.1.label`,
|
buttonLabel: `${namespace}:option.1.label`,
|
||||||
buttonTooltip: `${namespace}:option.1.tooltip`,
|
buttonTooltip: `${namespace}:option.1.tooltip`,
|
||||||
|
@ -84,7 +84,7 @@ describe("Department Store Sale - Mystery Encounter", () => {
|
|||||||
describe("Option 1 - TM Shop", () => {
|
describe("Option 1 - TM Shop", () => {
|
||||||
it("should have the correct properties", () => {
|
it("should have the correct properties", () => {
|
||||||
const option = DepartmentStoreSaleEncounter.options[0];
|
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).toBeDefined();
|
||||||
expect(option.dialogue).toStrictEqual({
|
expect(option.dialogue).toStrictEqual({
|
||||||
buttonLabel: `${namespace}:option.1.label`,
|
buttonLabel: `${namespace}:option.1.label`,
|
||||||
|
Loading…
Reference in New Issue
Block a user