mirror of
https://github.com/PrismarineJS/node-minecraft-protocol.git
synced 2024-11-14 10:55:05 -05:00
fix it
This commit is contained in:
parent
65c2f09c9e
commit
fd1594b8fe
1 changed files with 4 additions and 6 deletions
|
@ -13,7 +13,7 @@ for (const supportedVersion of supportedVersions) {
|
|||
const mcData = require('minecraft-data')(supportedVersion)
|
||||
const version = mcData.version.minecraftVersion
|
||||
describe(`Packet cycle tests for ${version}`, () => {
|
||||
runTestForVersion(version)
|
||||
it('works', () => runTestForVersion(version))
|
||||
})
|
||||
}
|
||||
|
||||
|
@ -26,11 +26,9 @@ function cycleBufferFactory (mcVersion) {
|
|||
}
|
||||
|
||||
function runTestForVersion (mcVersion) {
|
||||
it(`${mcVersion} in mcpackets`, () => {
|
||||
if (!(mcVersion in mcPackets.pc)) {
|
||||
throw new Error(`${mcVersion} Version not in minecraft-packets`)
|
||||
}
|
||||
})
|
||||
if (!(mcVersion in mcPackets.pc)) {
|
||||
throw new Error(`${mcVersion} Version not in minecraft-packets`)
|
||||
}
|
||||
const cycleBuffer = cycleBufferFactory(mcVersion)
|
||||
function testBuffer (buffer, [packetName, packetIx]) {
|
||||
const cycled = cycleBuffer(buffer)
|
||||
|
|
Loading…
Reference in a new issue