From 8ce13dd9e2bd4783bad9a21108bcf53599694191 Mon Sep 17 00:00:00 2001 From: roblabla Date: Fri, 2 Oct 2015 01:30:23 +0200 Subject: [PATCH] Fix tests : client.session.username doesn't exist --- test/test.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/test.js b/test/test.js index e67a600..e9d8a7b 100644 --- a/test/test.js +++ b/test/test.js @@ -270,7 +270,7 @@ mc.supportedVersions.forEach(function(supportedVersion){ var lineListener=function(line) { var match = line.match(/\[Server thread\/INFO\]: <(.+?)> (.+)/); if(!match) return; - assert.strictEqual(match[1], client.session.username); + assert.strictEqual(match[1], client.username); assert.strictEqual(match[2], "hello everyone; I have logged in."); wrap.writeServer("say hello\n"); };