add a test to check /xp works

This commit is contained in:
Romain Beaumont 2015-12-07 01:02:21 +01:00
parent 05be3c4e89
commit 3806c3fd29

View file

@ -118,5 +118,10 @@ describe("Server with mineflayer connection", () => {
let [oldBlock,newBlock]=await once(bot,'blockUpdate:'+new Vec3(1,2,3),{array:true});
assert.equal(newBlock.type,95);
});
it("can use /xp",async() => {
bot.chat('/xp 100');
await once(bot,"experience");
assert.equal(bot.experience.points,100);
});
});
});