AvailabilityStatus set for Users in tests

This commit is contained in:
Piotr 'pwh' Hanusiak 2022-04-20 10:28:26 +02:00
parent 1cc34b94ca
commit 7147378a89

View File

@ -6,6 +6,7 @@ import { Zone } from "../src/Model/Zone";
import { Movable } from "../src/Model/Movable";
import { PositionInterface } from "../src/Model/PositionInterface";
import { ZoneSocket } from "../src/RoomManager";
import { AvailabilityStatus } from "../src/Messages/generated/messages_pb";
describe("PositionNotifier", () => {
it("should receive notifications when player moves", () => {
@ -41,7 +42,7 @@ describe("PositionNotifier", () => {
direction: "down",
},
positionNotifier,
false,
AvailabilityStatus.ONLINE,
{} as UserSocket,
[],
null,
@ -60,7 +61,7 @@ describe("PositionNotifier", () => {
direction: "down",
},
positionNotifier,
false,
AvailabilityStatus.ONLINE,
{} as UserSocket,
[],
null,
@ -149,7 +150,7 @@ describe("PositionNotifier", () => {
direction: "down",
},
positionNotifier,
false,
AvailabilityStatus.ONLINE,
{} as UserSocket,
[],
null,
@ -168,7 +169,7 @@ describe("PositionNotifier", () => {
direction: "down",
},
positionNotifier,
false,
AvailabilityStatus.ONLINE,
{} as UserSocket,
[],
null,