mirror of
https://github.com/sudoxnym/habitica.git
synced 2026-07-06 10:55:54 +00:00
fix api v2 tests, do not allow task.value to be updated
This commit is contained in:
parent
d9de6282a4
commit
bcbf00d42c
1 changed files with 1 additions and 3 deletions
|
|
@ -28,17 +28,15 @@ describe('PUT /user/tasks/:id', () => {
|
|||
});
|
||||
});
|
||||
|
||||
it('updates text, attribute, priority, value and notes', async () => {
|
||||
it('updates text, attribute, priority and notes', async () => {
|
||||
return user.put(`/user/tasks/${task.id}`, {
|
||||
text: 'new text',
|
||||
notes: 'new notes',
|
||||
value: 10000,
|
||||
priority: 0.1,
|
||||
attribute: 'str',
|
||||
}).then((updatedTask) => {
|
||||
expect(updatedTask.text).to.eql('new text');
|
||||
expect(updatedTask.notes).to.eql('new notes');
|
||||
expect(updatedTask.value).to.eql(10000);
|
||||
expect(updatedTask.priority).to.eql(0.1);
|
||||
expect(updatedTask.attribute).to.eql('str');
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in a new issue