fix /kill test by fixing mineflayer

This commit is contained in:
Romain Beaumont 2015-12-11 13:28:48 +01:00
parent 47c75671c4
commit b6b49a5c3c
2 changed files with 2 additions and 2 deletions

View file

@ -61,7 +61,7 @@
"gulp-plumber": "^1.0.1",
"gulp-sourcemaps": "^1.3.0",
"longjohn": "~0.2.8",
"mineflayer": "^1.5.2",
"mineflayer": "^1.5.3",
"mocha": "~2.3.4",
"require-self": "^0.1.0"
}

View file

@ -116,7 +116,7 @@ describe("Server with mineflayer connection", function() {
bot.on('entitySpawn',listener);
});
});
it.skip("can use /kill",async () => { // TODO: figure out why that fails : mineflayer doesn't seem to emit entityDead
it("can use /kill",async () => {
bot.chat('/kill @e[type=EnderDragon]');
const entity=await once(bot,'entityDead');
assert.equal(entity.name,"EnderDragon");