Commit 99d5e4be authored by NataliaTepluhina's avatar NataliaTepluhina

Added action test

parent 38b57192
......@@ -238,4 +238,14 @@ describe('LabelsSelectRoot', () => {
expect(store.dispatch).not.toHaveBeenCalled();
});
it('calls updateLabelsSetState after selected labels were updated', async () => {
createComponent();
jest.spyOn(store, 'dispatch').mockResolvedValue();
await wrapper.setProps({ selectedLabels: [] });
jest.advanceTimersByTime(100);
expect(store.dispatch).toHaveBeenCalledWith('updateLabelsSetState');
});
});
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