mirror of
https://github.com/PrismarineJS/node-minecraft-protocol.git
synced 2024-11-14 19:04:59 -05: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
1 changed files with 1 additions and 1 deletions
|
@ -439,7 +439,7 @@ describe("client", function() {
|
|||
});
|
||||
var gotKicked = false;
|
||||
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;
|
||||
});
|
||||
client.on('end', function() {
|
||||
|
|
Loading…
Reference in a new issue