update standard to version 15

This commit is contained in:
Romain Beaumont 2020-10-24 13:44:33 +00:00
parent d763710bd5
commit 99edabb716
2 changed files with 6 additions and 3 deletions

View file

@ -40,7 +40,7 @@
"mocha": "^8.0.1", "mocha": "^8.0.1",
"power-assert": "^1.0.0", "power-assert": "^1.0.0",
"require-self": "^0.2.3", "require-self": "^0.2.3",
"standard": "^14.3.4" "standard": "^15.0.0"
}, },
"dependencies": { "dependencies": {
"aes-js": "^3.1.2", "aes-js": "^3.1.2",

View file

@ -123,8 +123,11 @@ mc.supportedVersions.forEach(function (supportedVersion, i) {
} else if (chatCount === 2) { } else if (chatCount === 2) {
assert.strictEqual(message.translate, 'chat.type.announcement') assert.strictEqual(message.translate, 'chat.type.announcement')
assert.strictEqual(message.with[0].text ? message.with[0].text : message.with[0], 'Server') 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 assert.deepEqual(message.with[1].extra
? message.with[1].extra[0].text : message.with[1].extra[0]) : message.with[1].text, 'hello') ? (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) wrap.removeListener('line', lineListener)
client.end() client.end()
done() done()