mirror of
https://github.com/PrismarineJS/node-minecraft-protocol.git
synced 2024-11-14 19:04:59 -05:00
fix tests
This commit is contained in:
parent
2da46e1f35
commit
b7c5a45557
2 changed files with 0 additions and 4 deletions
|
@ -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.'
|
||||||
|
|
|
@ -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) {
|
||||||
|
|
Loading…
Reference in a new issue