mirror of
https://github.com/danbulant/flying-squid
synced 2026-06-19 22:41:52 +00:00
add a test to check /xp works
This commit is contained in:
parent
05be3c4e89
commit
3806c3fd29
1 changed files with 5 additions and 0 deletions
|
|
@ -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);
|
||||
});
|
||||
});
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in a new issue