fix api v2 tests, do not allow task.value to be updated

This commit is contained in:
Matteo Pagliazzi
2016-05-31 11:32:33 +02:00
parent d9de6282a4
commit bcbf00d42c

View File

@@ -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');
});