mirror of
https://github.com/sudoxnym/habitica.git
synced 2026-08-05 03:52:14 +00:00
Added additional deletion test
This commit is contained in:
parent
4707ba793e
commit
80778cbd7c
1 changed files with 13 additions and 0 deletions
|
|
@ -238,6 +238,19 @@ describe "API", ->
|
|||
expect(body.err).to.be "Task not found."
|
||||
done()
|
||||
|
||||
it "Does not update text, attribute, priority, value, notes if task is already deleted", (done) ->
|
||||
request.put(baseURL + "/user/tasks/" + todo.id).send(
|
||||
text: "New Title"
|
||||
attribute: "str"
|
||||
priority: 1
|
||||
value: 4
|
||||
notes: "Other notes"
|
||||
).end (res) ->
|
||||
expectCode res, 404
|
||||
body = res.body
|
||||
expect(body.err).to.be "Task not found."
|
||||
done()
|
||||
|
||||
###*
|
||||
GROUPS
|
||||
###
|
||||
|
|
|
|||
Loading…
Reference in a new issue