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:
Romain Beaumont 2015-09-14 22:48:00 +02:00
parent 6bad0f8461
commit 6bacdf33cc

View file

@ -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() {