Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
merge-requests/1534/head
marcin mikołajczak 2022-06-18 13:27:05 +02:00
rodzic ee5453c18f
commit fe636bc4e4
2 zmienionych plików z 8 dodań i 4 usunięć

Wyświetl plik

@ -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);
});

Wyświetl plik

@ -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);
});