From 6bacdf33ccfc0584583a3bbc12dcb12f04edd626 Mon Sep 17 00:00:00 2001 From: Romain Beaumont Date: Mon, 14 Sep 2015 22:48:00 +0200 Subject: [PATCH] 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 --- test/test.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/test.js b/test/test.js index 4eed765..e2bfa04 100644 --- a/test/test.js +++ b/test/test.js @@ -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() {