From fd1594b8fe0cac7b4041d7116f123975949ec606 Mon Sep 17 00:00:00 2001 From: Romain Beaumont Date: Sat, 11 Dec 2021 00:51:56 +0000 Subject: [PATCH] fix it --- test/packetCycleTests.js | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/test/packetCycleTests.js b/test/packetCycleTests.js index 12ed8ee..d803726 100644 --- a/test/packetCycleTests.js +++ b/test/packetCycleTests.js @@ -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)