neon-sprawl/bruno/neon-sprawl-server/cooldown-snapshot/Get cooldown snapshot.bru

26 lines
531 B
Plaintext

meta {
name: GET cooldown snapshot
type: http
seq: 1
}
get {
url: {{baseUrl}}/game/players/dev-local-1/cooldown-snapshot
body: none
auth: none
}
tests {
test("status 200", function () {
expect(res.getStatus()).to.equal(200);
});
test("schema and eight slots", function () {
const body = res.getBody();
expect(body.schemaVersion).to.equal(1);
expect(body.playerId).to.equal("dev-local-1");
expect(Array.isArray(body.slots)).to.equal(true);
expect(body.slots.length).to.equal(8);
});
}