Updating tests.

This commit is contained in:
David Jay
2016-12-07 22:22:23 -05:00
parent 6fc3f00175
commit f8923aa283
@@ -155,7 +155,7 @@ describe('itemActions', () => {
describe('postAction', () => {
it ('should post an action', () => {
fetchMock.post('*', {id: '456'});
return actions.postAction('abc', 'flag', '123', 'comments', 'Comment smells funny')(store.dispatch)
return actions.postAction('abc', 'flag', 'comments', 'Comment smells funny')(store.dispatch)
.then(response => {
expect(fetchMock.calls().matched[0][0]).to.equal('/api/v1/comments/abc/actions');
expect(response).to.deep.equal({id:'456'});