neon-sprawl/bruno/neon-sprawl-server/ability-cast/Post cast happy.bru

33 lines
559 B
Plaintext

meta {
name: POST ability cast happy
type: http
seq: 22
}
post {
url: {{baseUrl}}/game/players/dev-local-1/ability-cast
body: json
auth: none
}
body:json {
{
"schemaVersion": 1,
"slotIndex": 0,
"abilityId": "prototype_pulse",
"targetId": "prototype_target_alpha"
}
}
tests {
test("status 200", function () {
expect(res.getStatus()).to.equal(200);
});
test("accepted true", function () {
const body = res.getBody();
expect(body.schemaVersion).to.equal(1);
expect(body.accepted).to.equal(true);
});
}