Commit 13b227a9 authored by Tim Zallmann's avatar Tim Zallmann

Updated Actions Spec for refetching label

parent 3995f8a6
...@@ -214,7 +214,7 @@ describe('LabelsSelect Actions', () => { ...@@ -214,7 +214,7 @@ describe('LabelsSelect Actions', () => {
}); });
describe('on success', () => { describe('on success', () => {
it('dispatches `requestCreateLabel`, `receiveCreateLabelSuccess` & `toggleDropdownContentsCreateView` actions', (done) => { it('dispatches `requestCreateLabel`, `fetchLabels` & `receiveCreateLabelSuccess` & `toggleDropdownContentsCreateView` actions', (done) => {
const label = { id: 1 }; const label = { id: 1 };
mock.onPost(/labels.json/).replyOnce(200, label); mock.onPost(/labels.json/).replyOnce(200, label);
...@@ -225,6 +225,7 @@ describe('LabelsSelect Actions', () => { ...@@ -225,6 +225,7 @@ describe('LabelsSelect Actions', () => {
[], [],
[ [
{ type: 'requestCreateLabel' }, { type: 'requestCreateLabel' },
{ payload: true, type: 'fetchLabels' },
{ type: 'receiveCreateLabelSuccess' }, { type: 'receiveCreateLabelSuccess' },
{ type: 'toggleDropdownContentsCreateView' }, { type: 'toggleDropdownContentsCreateView' },
], ],
......
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