From 7147378a89e8a1b938b8a82d7bc0278d49242a66 Mon Sep 17 00:00:00 2001
From: Piotr 'pwh' Hanusiak
Date: Wed, 20 Apr 2022 10:28:26 +0200
Subject: [PATCH] AvailabilityStatus set for Users in tests
---
back/tests/PositionNotifierTest.ts | 9 +++++----
1 file changed, 5 insertions(+), 4 deletions(-)
diff --git a/back/tests/PositionNotifierTest.ts b/back/tests/PositionNotifierTest.ts
index d35cde56..70e4c0a0 100644
--- a/back/tests/PositionNotifierTest.ts
+++ b/back/tests/PositionNotifierTest.ts
@@ -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,