Skip to content

Commit

Permalink
[skip ci] improve skipped test
Browse files Browse the repository at this point in the history
  • Loading branch information
zardoy committed Sep 9, 2023
1 parent 035c0e4 commit cb540ce
Showing 1 changed file with 5 additions and 10 deletions.
15 changes: 5 additions & 10 deletions test/mineflayer.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,9 @@ squid.supportedVersions.forEach((supportedVersion, i) => {
const Item = require('prismarine-item')(supportedVersion)

describe('server with mineflayer connection ' + version.minecraftVersion, () => {
/** @type {import('mineflayer').Bot} */
let bot
/** @type {import('mineflayer').Bot} */
let bot2
let serv
let entityName
Expand Down Expand Up @@ -286,16 +288,9 @@ squid.supportedVersions.forEach((supportedVersion, i) => {
await once(bot2.inventory, 'updateSlot')
expect(bot2.inventory.slots[36].type).toEqual(1)
})
it.skip('can use tabComplete', () => { // TODO to fix
return new Promise((resolve, reject) => {
bot.tabComplete('/give', (err, data) => {
if (err) {
return reject(err)
}
expect(data[0]).toEqual('bot')
return resolve()
})
})
it.skip('can use tabComplete', async () => {
const data = await bot.tabComplete('/give ')
expect(data).toEqual(['bot', 'bot2', '@p', '@a', '@e', '@r'])
})

function waitMessagePromise (message) {
Expand Down

0 comments on commit cb540ce

Please sign in to comment.