Commit 569f27ff authored by lauraMon's avatar lauraMon

Fixes actions spec

parent 5783d656
...@@ -90,14 +90,13 @@ describe('error tracking actions', () => { ...@@ -90,14 +90,13 @@ describe('error tracking actions', () => {
describe('sortByField', () => { describe('sortByField', () => {
it('should search by query', () => { it('should search by query', () => {
const field = 'frequency'; const field = 'frequency';
const cursor = '1576637570000:0:0';
testAction( testAction(
actions.sortByField, actions.sortByField,
{ field, cursor }, field,
{}, {},
[ [
{ type: types.SET_CURSOR, payload: cursor }, { type: types.SET_CURSOR, payload: undefined },
{ type: types.SET_SORT_FIELD, payload: field }, { type: types.SET_SORT_FIELD, payload: field },
], ],
[{ type: 'stopPolling' }, { type: 'startPolling' }], [{ type: 'stopPolling' }, { type: 'startPolling' }],
......
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