Commit 87ed510b authored by Gijs Hendriksen's avatar Gijs Hendriksen
Browse files

Merge branch 'fix/patch-instead-of-put' into 'master'

Change registration update call to PATCH instead of PUT for future new fields…

See merge request !219
parents f0c00201 bd5a28f0
......@@ -137,7 +137,7 @@ describe('registration saga', () => {
.put(registrationActions.failure())
.silentRun());
it('should do a PUT request with fields', () => expectSaga(registrationSaga)
it('should do a PATCH request with fields', () => expectSaga(registrationSaga)
.provide([
[select(tokenSelector), 'token'],
])
......@@ -151,7 +151,7 @@ describe('registration saga', () => {
Authorization: 'Token token',
'Content-Type': 'application/json',
},
method: 'PUT',
method: 'PATCH',
});
}));
});
......
......@@ -57,7 +57,7 @@ const update = function* update(action) {
});
const data = {
method: 'PUT',
method: 'PATCH',
headers: {
Accept: 'application/json',
'Content-Type': 'application/json',
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment