mirror of
https://github.com/danbulant/flying-squid
synced 2026-07-05 19:20:54 +00:00
fix /kill test by fixing mineflayer
This commit is contained in:
parent
47c75671c4
commit
b6b49a5c3c
2 changed files with 2 additions and 2 deletions
|
|
@ -61,7 +61,7 @@
|
||||||
"gulp-plumber": "^1.0.1",
|
"gulp-plumber": "^1.0.1",
|
||||||
"gulp-sourcemaps": "^1.3.0",
|
"gulp-sourcemaps": "^1.3.0",
|
||||||
"longjohn": "~0.2.8",
|
"longjohn": "~0.2.8",
|
||||||
"mineflayer": "^1.5.2",
|
"mineflayer": "^1.5.3",
|
||||||
"mocha": "~2.3.4",
|
"mocha": "~2.3.4",
|
||||||
"require-self": "^0.1.0"
|
"require-self": "^0.1.0"
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -116,7 +116,7 @@ describe("Server with mineflayer connection", function() {
|
||||||
bot.on('entitySpawn',listener);
|
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]');
|
bot.chat('/kill @e[type=EnderDragon]');
|
||||||
const entity=await once(bot,'entityDead');
|
const entity=await once(bot,'entityDead');
|
||||||
assert.equal(entity.name,"EnderDragon");
|
assert.equal(entity.name,"EnderDragon");
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue