Merge pull request #269 from roblabla/feature-fixTests

Fix tests : client.session.username doesn't exist
This commit is contained in:
Robin Lambertz 2015-10-02 01:34:19 +02:00
commit 4c14c8f859

View File

@ -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");
};