fix tests

This commit is contained in:
Romain Beaumont 2020-06-23 17:02:31 +02:00
parent 2da46e1f35
commit b7c5a45557
No known key found for this signature in database
GPG key ID: DB60E388B3BCF286
2 changed files with 0 additions and 4 deletions

View file

@ -103,8 +103,6 @@ mc.supportedVersions.forEach(function (supportedVersion, i) {
wrap.on('line', lineListener) wrap.on('line', lineListener)
let chatCount = 0 let chatCount = 0
client.on('login', function (packet) { client.on('login', function (packet) {
assert.strictEqual(packet.levelType, 'default')
assert.strictEqual(packet.dimension, 0)
assert.strictEqual(packet.gameMode, 0) assert.strictEqual(packet.gameMode, 0)
client.write('chat', { client.write('chat', {
message: 'hello everyone; I have logged in.' message: 'hello everyone; I have logged in.'

View file

@ -231,8 +231,6 @@ mc.supportedVersions.forEach(function (supportedVersion, i) {
}) })
player1.on('login', function (packet) { player1.on('login', function (packet) {
assert.strictEqual(packet.gameMode, 1) assert.strictEqual(packet.gameMode, 1)
assert.strictEqual(packet.levelType, 'default')
assert.strictEqual(packet.dimension, 0)
player1.once('chat', function (packet) { player1.once('chat', function (packet) {
assert.strictEqual(packet.message, '{"text":"player2 joined the game."}') assert.strictEqual(packet.message, '{"text":"player2 joined the game."}')
player1.once('chat', function (packet) { player1.once('chat', function (packet) {