add test for /kill

This commit is contained in:
Romain Beaumont 2015-12-09 01:19:18 +01:00
parent a770046407
commit 3ec142d118

View file

@ -115,6 +115,11 @@ describe("Server with mineflayer connection", function() {
bot.on('entitySpawn',listener);
});
});
it("can use /kill",async () => {
bot.chat('/kill @e[type=EnderDragon]');
const entity=await once(bot,'entityGone');
assert.equal(entity.name,"EnderDragon");
});
describe("can use /tp",() => {
it("can tp myself", async () => {
bot.chat('/tp 2 3 4');