mirror of
https://github.com/unmojang/node-minecraft-protocol.git
synced 2025-09-29 06:03:33 -04:00
Fix tests : client.session.username doesn't exist
This commit is contained in:
parent
5207141cec
commit
8ce13dd9e2
@ -270,7 +270,7 @@ mc.supportedVersions.forEach(function(supportedVersion){
|
|||||||
var lineListener=function(line) {
|
var lineListener=function(line) {
|
||||||
var match = line.match(/\[Server thread\/INFO\]: <(.+?)> (.+)/);
|
var match = line.match(/\[Server thread\/INFO\]: <(.+?)> (.+)/);
|
||||||
if(!match) return;
|
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.");
|
assert.strictEqual(match[2], "hello everyone; I have logged in.");
|
||||||
wrap.writeServer("say hello\n");
|
wrap.writeServer("say hello\n");
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user