mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-07-04 07:22:19 +02:00
commas
This commit is contained in:
parent
1c61f5f73e
commit
228c161bd2
@ -90,10 +90,10 @@ describe("Battle order", () => {
|
|||||||
|
|
||||||
const phase = game.scene.getCurrentPhase() as TurnStartPhase;
|
const phase = game.scene.getCurrentPhase() as TurnStartPhase;
|
||||||
const order = phase.getCommandOrder();
|
const order = phase.getCommandOrder();
|
||||||
expect(order.slice(0,2).includes(enemyIndices[0])).toBe(true);
|
expect(order.slice(0, 2).includes(enemyIndices[0])).toBe(true);
|
||||||
expect(order.slice(0,2).includes(enemyIndices[1])).toBe(true);
|
expect(order.slice(0, 2).includes(enemyIndices[1])).toBe(true);
|
||||||
expect(order.slice(2,4).includes(playerIndices[0])).toBe(true);
|
expect(order.slice(2, 4).includes(playerIndices[0])).toBe(true);
|
||||||
expect(order.slice(2,4).includes(playerIndices[1])).toBe(true);
|
expect(order.slice(2, 4).includes(playerIndices[1])).toBe(true);
|
||||||
}, 20000);
|
}, 20000);
|
||||||
|
|
||||||
it("double - speed tie except 1 - 100/100 vs 100/150", async () => {
|
it("double - speed tie except 1 - 100/100 vs 100/150", async () => {
|
||||||
@ -118,9 +118,9 @@ describe("Battle order", () => {
|
|||||||
const phase = game.scene.getCurrentPhase() as TurnStartPhase;
|
const phase = game.scene.getCurrentPhase() as TurnStartPhase;
|
||||||
const order = phase.getCommandOrder();
|
const order = phase.getCommandOrder();
|
||||||
expect(order[0]).toBe(enemyIndices[1]);
|
expect(order[0]).toBe(enemyIndices[1]);
|
||||||
expect(order.slice(1,4).includes(enemyIndices[0])).toBe(true);
|
expect(order.slice(1, 4).includes(enemyIndices[0])).toBe(true);
|
||||||
expect(order.slice(1,4).includes(playerIndices[0])).toBe(true);
|
expect(order.slice(1, 4).includes(playerIndices[0])).toBe(true);
|
||||||
expect(order.slice(1,4).includes(playerIndices[1])).toBe(true);
|
expect(order.slice(1, 4).includes(playerIndices[1])).toBe(true);
|
||||||
}, 20000);
|
}, 20000);
|
||||||
|
|
||||||
it("double - speed tie 100/150 vs 100/150", async () => {
|
it("double - speed tie 100/150 vs 100/150", async () => {
|
||||||
@ -145,9 +145,9 @@ describe("Battle order", () => {
|
|||||||
|
|
||||||
const phase = game.scene.getCurrentPhase() as TurnStartPhase;
|
const phase = game.scene.getCurrentPhase() as TurnStartPhase;
|
||||||
const order = phase.getCommandOrder();
|
const order = phase.getCommandOrder();
|
||||||
expect(order.slice(0,2).includes(playerIndices[1])).toBe(true);
|
expect(order.slice(0, 2).includes(playerIndices[1])).toBe(true);
|
||||||
expect(order.slice(0,2).includes(enemyIndices[1])).toBe(true);
|
expect(order.slice(0, 2).includes(enemyIndices[1])).toBe(true);
|
||||||
expect(order.slice(2,4).includes(playerIndices[0])).toBe(true);
|
expect(order.slice(2, 4).includes(playerIndices[0])).toBe(true);
|
||||||
expect(order.slice(2,4).includes(enemyIndices[0])).toBe(true);
|
expect(order.slice(2, 4).includes(enemyIndices[0])).toBe(true);
|
||||||
}, 20000);
|
}, 20000);
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user