mirror of
https://github.com/bitsocialnet/5chan.git
synced 2026-08-03 07:41:04 +02:00
feat(pass): add pass page and update voting copy
This commit is contained in:
@@ -166,6 +166,10 @@ vi.mock('../views/not-found', () => ({
|
||||
default: makeNamedComponent('not-found-view'),
|
||||
}));
|
||||
|
||||
vi.mock('../views/pass', () => ({
|
||||
default: makeNamedComponent('pass-view'),
|
||||
}));
|
||||
|
||||
vi.mock('../views/pending-post', () => ({
|
||||
default: makeNamedComponent('pending-post-view'),
|
||||
}));
|
||||
@@ -314,6 +318,14 @@ describe('App', () => {
|
||||
expect(container.querySelector('[data-testid="not-found-view"]')).toBeTruthy();
|
||||
});
|
||||
|
||||
it('renders the pass route as a global static page', async () => {
|
||||
await renderApp('/pass');
|
||||
|
||||
expect(latestLocation).toBe('/pass');
|
||||
expect(container.querySelector('[data-testid="pass-view"]')).toBeTruthy();
|
||||
expect(container.querySelector('[data-testid="boards-bar"]')).toBeNull();
|
||||
});
|
||||
|
||||
it('canonicalizes board address routes to directory codes while preserving query strings', async () => {
|
||||
await renderApp('/music-posting.eth/thread/comment-1?focus=1');
|
||||
|
||||
|
||||
Reference in New Issue
Block a user