mirror of
https://github.com/bitsocialnet/5chan.git
synced 2026-08-03 07:41:04 +02:00
refactor(core): remove legacy plebbit terminology
This commit is contained in:
@@ -9,7 +9,7 @@ import BoardsBar from '../boards-bar';
|
||||
const act = (React as { act?: (cb: () => void | Promise<void>) => void | Promise<void> }).act as (cb: () => void | Promise<void>) => void | Promise<void>;
|
||||
|
||||
const testState = vi.hoisted(() => ({
|
||||
accountComment: undefined as { communityAddress?: string; subplebbitAddress?: string } | undefined,
|
||||
accountComment: undefined as { communityAddress?: string } | undefined,
|
||||
accountCommunityAddresses: ['music-posting.eth'] as string[],
|
||||
directories: [
|
||||
{ address: 'music-posting.eth', title: '/mu/ - Music' },
|
||||
@@ -262,7 +262,7 @@ describe('BoardsBar', () => {
|
||||
|
||||
it('keeps the mobile board context for legacy account comments', async () => {
|
||||
testState.resolvedCommunityAddress = undefined;
|
||||
testState.accountComment = { subplebbitAddress: 'music-posting.eth' };
|
||||
testState.accountComment = { communityAddress: 'music-posting.eth' };
|
||||
|
||||
await renderBoardsBar('/pending/7');
|
||||
|
||||
|
||||
Reference in New Issue
Block a user