33 lines
539 B
Plaintext
33 lines
539 B
Plaintext
meta {
|
|
name: POST ability cast happy
|
|
type: http
|
|
seq: 21
|
|
}
|
|
|
|
post {
|
|
url: {{baseUrl}}/game/players/dev-local-1/ability-cast
|
|
body: json
|
|
auth: none
|
|
}
|
|
|
|
body:json {
|
|
{
|
|
"schemaVersion": 1,
|
|
"slotIndex": 0,
|
|
"abilityId": "prototype_pulse",
|
|
"targetId": null
|
|
}
|
|
}
|
|
|
|
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);
|
|
});
|
|
}
|