From 7410cc8a4bfd98327e4b523978023ad1d444bd89 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20N=C3=A9grier?= Date: Wed, 16 Sep 2020 16:10:20 +0200 Subject: [PATCH] Fixing tests --- back/tests/PositionNotifierTest.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/back/tests/PositionNotifierTest.ts b/back/tests/PositionNotifierTest.ts index 936efb08..dd1e3b4b 100644 --- a/back/tests/PositionNotifierTest.ts +++ b/back/tests/PositionNotifierTest.ts @@ -7,6 +7,7 @@ import {User} from "../src/Model/User"; import {PointInterface} from "../src/Model/Websocket/PointInterface"; import {Zone} from "_Model/Zone"; import {Movable} from "_Model/Movable"; +import {PositionInterface} from "_Model/PositionInterface"; function move(user: User, x: number, y: number, positionNotifier: PositionNotifier): void { positionNotifier.updatePosition(user, { @@ -25,7 +26,7 @@ describe("PositionNotifier", () => { const positionNotifier = new PositionNotifier(300, 300, (thing: Movable) => { enterTriggered = true; - }, (thing: Movable, position: PointInterface) => { + }, (thing: Movable, position: PositionInterface) => { moveTriggered = true; }, (thing: Movable) => { leaveTriggered = true; @@ -103,7 +104,7 @@ describe("PositionNotifier", () => { const positionNotifier = new PositionNotifier(300, 300, (thing: Movable) => { enterTriggered = true; - }, (thing: Movable, position: PointInterface) => { + }, (thing: Movable, position: PositionInterface) => { moveTriggered = true; }, (thing: Movable) => { leaveTriggered = true;