diff --git a/hw3-spec.js b/hw3-spec.js index 7b7199c..a5808d4 100644 --- a/hw3-spec.js +++ b/hw3-spec.js @@ -26,7 +26,7 @@ describe('Application part 3', function() { }).then(contacts => { var fetchedItem = contacts.filter(each => each.name === name).pop(); fetchedItem.name = nameChanged; - return put('api/contacts/' + fetchedItem.id, fetchedItem); + return put('api/contacts/' + fetchedItem._id, fetchedItem); }).then(() => { return get('api/contacts'); }).then(contacts => {