fix tests
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
This commit is contained in:
parent
ee5453c18f
commit
fe636bc4e4
2 changed files with 8 additions and 4 deletions
|
@ -1,3 +1,5 @@
|
|||
import { Map as ImmutableMap } from 'immutable';
|
||||
|
||||
import { __stub } from 'soapbox/api';
|
||||
import { mockStore } from 'soapbox/jest/test-helpers';
|
||||
import rootReducer from 'soapbox/reducers';
|
||||
|
@ -10,7 +12,7 @@ describe('submitAccountNote()', () => {
|
|||
|
||||
beforeEach(() => {
|
||||
const state = rootReducer(undefined, {})
|
||||
.set('account_notes', { edit: { account_id: 1, comment: 'hello' } });
|
||||
.set('account_notes', { edit: { account: 1, comment: 'hello' } });
|
||||
store = mockStore(state);
|
||||
});
|
||||
|
||||
|
@ -62,7 +64,7 @@ describe('initAccountNoteModal()', () => {
|
|||
|
||||
beforeEach(() => {
|
||||
const state = rootReducer(undefined, {})
|
||||
.set('relationships', { 1: { note: 'hello' } });
|
||||
.set('relationships', ImmutableMap({ 1: { note: 'hello' } }));
|
||||
store = mockStore(state);
|
||||
});
|
||||
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
import { Map as ImmutableMap } from 'immutable';
|
||||
|
||||
import { __stub } from 'soapbox/api';
|
||||
import { mockStore } from 'soapbox/jest/test-helpers';
|
||||
import rootReducer from 'soapbox/reducers';
|
||||
|
@ -111,7 +113,7 @@ describe('expandBlocks()', () => {
|
|||
beforeEach(() => {
|
||||
const state = rootReducer(undefined, {})
|
||||
.set('me', '1234')
|
||||
.set('user_lists', { blocks: { next: null } });
|
||||
.set('user_lists', ImmutableMap({ blocks: { next: null } }));
|
||||
store = mockStore(state);
|
||||
});
|
||||
|
||||
|
@ -127,7 +129,7 @@ describe('expandBlocks()', () => {
|
|||
beforeEach(() => {
|
||||
const state = rootReducer(undefined, {})
|
||||
.set('me', '1234')
|
||||
.set('user_lists', { blocks: { next: 'example' } });
|
||||
.set('user_lists', ImmutableMap({ blocks: { next: 'example' } }));
|
||||
store = mockStore(state);
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in a new issue