From d5735661265074d0a2b7465117d23c3a940a43b2 Mon Sep 17 00:00:00 2001 From: Hamcha Date: Fri, 6 Sep 2019 14:15:49 +0200 Subject: [PATCH] Rename server tests --- src/tests/unit/network.spec.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/tests/unit/network.spec.ts b/src/tests/unit/network.spec.ts index cf17778..4fbc8d1 100644 --- a/src/tests/unit/network.spec.ts +++ b/src/tests/unit/network.spec.ts @@ -14,12 +14,12 @@ function messageKind(kind: string): (msg: NetworkMessage) => void { } describe("network/PeerServer", () => { - test("Create server", () => { + test("A server can be created", () => { const mox = new MockHelper(); mox.createServer(sampleRoom()); }); - test("Test client join", async () => { + test("Clients can join servers and receive data", async () => { const mox = new MockHelper(); const hook = new EventHook(); mox.createServer(sampleRoom()); @@ -30,7 +30,7 @@ describe("network/PeerServer", () => { await hook.expect("client-data", 1000, messageKind("player-joined")); }); - test("Test multiple clients (w/ name collision)", async () => { + test("Servers handle multiple clients and resolve name collisions", async () => { const mox = new MockHelper(); const hook = new EventHook(); mox.createServer(sampleRoom());