From bcbf00d42c598ffd06051cce68fbfe1dd1b4e7c7 Mon Sep 17 00:00:00 2001 From: Matteo Pagliazzi Date: Tue, 31 May 2016 11:32:33 +0200 Subject: [PATCH] fix api v2 tests, do not allow task.value to be updated --- test/api/v2/user/tasks/PUT-tasks_id.test.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/test/api/v2/user/tasks/PUT-tasks_id.test.js b/test/api/v2/user/tasks/PUT-tasks_id.test.js index 3bb9d8e9c6..ee41a4fe68 100644 --- a/test/api/v2/user/tasks/PUT-tasks_id.test.js +++ b/test/api/v2/user/tasks/PUT-tasks_id.test.js @@ -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'); });