diff --git a/app/soapbox/actions/__tests__/account-notes.test.ts b/app/soapbox/actions/__tests__/account-notes.test.ts index e173fd17f..134b0abc7 100644 --- a/app/soapbox/actions/__tests__/account-notes.test.ts +++ b/app/soapbox/actions/__tests__/account-notes.test.ts @@ -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); }); diff --git a/app/soapbox/actions/__tests__/blocks.test.ts b/app/soapbox/actions/__tests__/blocks.test.ts index 55055722a..eedf17c30 100644 --- a/app/soapbox/actions/__tests__/blocks.test.ts +++ b/app/soapbox/actions/__tests__/blocks.test.ts @@ -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); });