mirror of
https://github.com/PrismarineJS/node-minecraft-protocol.git
synced 2024-11-28 02:05:40 -05:00
update standard to version 15
This commit is contained in:
parent
d763710bd5
commit
99edabb716
2 changed files with 6 additions and 3 deletions
|
@ -40,7 +40,7 @@
|
|||
"mocha": "^8.0.1",
|
||||
"power-assert": "^1.0.0",
|
||||
"require-self": "^0.2.3",
|
||||
"standard": "^14.3.4"
|
||||
"standard": "^15.0.0"
|
||||
},
|
||||
"dependencies": {
|
||||
"aes-js": "^3.1.2",
|
||||
|
|
|
@ -123,8 +123,11 @@ mc.supportedVersions.forEach(function (supportedVersion, i) {
|
|||
} else if (chatCount === 2) {
|
||||
assert.strictEqual(message.translate, 'chat.type.announcement')
|
||||
assert.strictEqual(message.with[0].text ? message.with[0].text : message.with[0], 'Server')
|
||||
assert.deepEqual(message.with[1].extra ? (message.with[1].extra[0].text
|
||||
? message.with[1].extra[0].text : message.with[1].extra[0]) : message.with[1].text, 'hello')
|
||||
assert.deepEqual(message.with[1].extra
|
||||
? (message.with[1].extra[0].text
|
||||
? message.with[1].extra[0].text
|
||||
: message.with[1].extra[0])
|
||||
: message.with[1].text, 'hello')
|
||||
wrap.removeListener('line', lineListener)
|
||||
client.end()
|
||||
done()
|
||||
|
|
Loading…
Reference in a new issue