mirror of
https://github.com/bitsocialnet/5chan.git
synced 2026-08-03 07:41:04 +02:00
fix: link mod empty state to account import
This commit is contained in:
@@ -515,6 +515,19 @@ describe('Board', () => {
|
||||
expect(container.textContent).toContain('not_subscribed_to_any_board');
|
||||
});
|
||||
|
||||
it('links empty mod feeds to account import settings', async () => {
|
||||
testState.accountCommunityAddresses = [];
|
||||
|
||||
await renderBoard({
|
||||
boardProps: { viewType: 'mod' },
|
||||
initialEntry: '/mod',
|
||||
routePath: '/mod/*',
|
||||
});
|
||||
|
||||
expect(container.textContent).toContain('not_mod_of_any_board');
|
||||
expect(container.querySelector('a')?.getAttribute('href')).toBe('/mod/settings#account-settings');
|
||||
});
|
||||
|
||||
it('passes multiboard time filters to useFeed and honors cached overrides', async () => {
|
||||
testState.feed = [{ cid: 'all-post', communityAddress: 'music-posting.eth' }];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user