AvailabilityStatus set for Users in tests
This commit is contained in:
parent
1cc34b94ca
commit
7147378a89
@ -6,6 +6,7 @@ import { Zone } from "../src/Model/Zone";
|
|||||||
import { Movable } from "../src/Model/Movable";
|
import { Movable } from "../src/Model/Movable";
|
||||||
import { PositionInterface } from "../src/Model/PositionInterface";
|
import { PositionInterface } from "../src/Model/PositionInterface";
|
||||||
import { ZoneSocket } from "../src/RoomManager";
|
import { ZoneSocket } from "../src/RoomManager";
|
||||||
|
import { AvailabilityStatus } from "../src/Messages/generated/messages_pb";
|
||||||
|
|
||||||
describe("PositionNotifier", () => {
|
describe("PositionNotifier", () => {
|
||||||
it("should receive notifications when player moves", () => {
|
it("should receive notifications when player moves", () => {
|
||||||
@ -41,7 +42,7 @@ describe("PositionNotifier", () => {
|
|||||||
direction: "down",
|
direction: "down",
|
||||||
},
|
},
|
||||||
positionNotifier,
|
positionNotifier,
|
||||||
false,
|
AvailabilityStatus.ONLINE,
|
||||||
{} as UserSocket,
|
{} as UserSocket,
|
||||||
[],
|
[],
|
||||||
null,
|
null,
|
||||||
@ -60,7 +61,7 @@ describe("PositionNotifier", () => {
|
|||||||
direction: "down",
|
direction: "down",
|
||||||
},
|
},
|
||||||
positionNotifier,
|
positionNotifier,
|
||||||
false,
|
AvailabilityStatus.ONLINE,
|
||||||
{} as UserSocket,
|
{} as UserSocket,
|
||||||
[],
|
[],
|
||||||
null,
|
null,
|
||||||
@ -149,7 +150,7 @@ describe("PositionNotifier", () => {
|
|||||||
direction: "down",
|
direction: "down",
|
||||||
},
|
},
|
||||||
positionNotifier,
|
positionNotifier,
|
||||||
false,
|
AvailabilityStatus.ONLINE,
|
||||||
{} as UserSocket,
|
{} as UserSocket,
|
||||||
[],
|
[],
|
||||||
null,
|
null,
|
||||||
@ -168,7 +169,7 @@ describe("PositionNotifier", () => {
|
|||||||
direction: "down",
|
direction: "down",
|
||||||
},
|
},
|
||||||
positionNotifier,
|
positionNotifier,
|
||||||
false,
|
AvailabilityStatus.ONLINE,
|
||||||
{} as UserSocket,
|
{} as UserSocket,
|
||||||
[],
|
[],
|
||||||
null,
|
null,
|
||||||
|
Loading…
Reference in New Issue
Block a user