Fix tests

This commit is contained in:
Chewbacca 2022-12-01 13:08:05 -05:00
parent 67a61ad3b4
commit d875c1c3e8
1 changed files with 6 additions and 4 deletions

View File

@ -20,12 +20,14 @@ describe('<ChatPage />', () => {
}); });
describe('when you complete onboarding', () => { describe('when you complete onboarding', () => {
const id = '1';
beforeEach(() => { beforeEach(() => {
store = { store = {
me: '1', me: id,
accounts: ImmutableMap({ accounts: ImmutableMap({
'1': normalizeAccount({ [id]: normalizeAccount({
id: '1', id,
acct: 'justin-username', acct: 'justin-username',
display_name: 'Justin L', display_name: 'Justin L',
avatar: 'test.jpg', avatar: 'test.jpg',
@ -37,7 +39,7 @@ describe('<ChatPage />', () => {
__stub((mock) => { __stub((mock) => {
mock mock
.onPatch('/api/v1/accounts/update_credentials') .onPatch('/api/v1/accounts/update_credentials')
.reply(200, { chats_onboarded: true, id: 1 }); .reply(200, { chats_onboarded: true, id });
}); });
}); });