mirror of
https://github.com/danbulant/flying-squid
synced 2026-06-20 23:11:21 +00:00
add test for /kill
This commit is contained in:
parent
a770046407
commit
3ec142d118
1 changed files with 5 additions and 0 deletions
|
|
@ -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');
|
||||
|
|
|
|||
Loading…
Reference in a new issue