mirror of
https://github.com/unmojang/node-minecraft-protocol.git
synced 2025-09-29 14:13:45 -04:00
check if the reason contains the quoted reason instead of strict equality : make the tests work with the same code in 1.8 and 1.9
This commit is contained in:
parent
6bad0f8461
commit
6bacdf33cc
@ -439,7 +439,7 @@ describe("client", function() {
|
|||||||
});
|
});
|
||||||
var gotKicked = false;
|
var gotKicked = false;
|
||||||
client.on([states.LOGIN, 0x00], function(packet) {
|
client.on([states.LOGIN, 0x00], function(packet) {
|
||||||
assert.strictEqual(packet.reason, '{"text":"Failed to verify username!"}');
|
assert.ok(packet.reason.indexOf('"Failed to verify username!"')!=-1);
|
||||||
gotKicked = true;
|
gotKicked = true;
|
||||||
});
|
});
|
||||||
client.on('end', function() {
|
client.on('end', function() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user