0315f35979
* Replace Terms & Conditions with Sign Up Link on Sign In #4502 * terms replaced with signup link * begin fix (incomplete / do not merge) * Revert * Introduce welcome page * Update Twenty website --------- Co-authored-by: Mamatha Yarramaneni <mamathayarramaneni@Mamathas-Macbook.local> Co-authored-by: Félix Malfait <felix.malfait@gmail.com>
28 lines
1.1 KiB
TypeScript
28 lines
1.1 KiB
TypeScript
import { getPageTitleFromPath } from '../title-utils';
|
|
|
|
describe('title-utils', () => {
|
|
it('should return the correct title for a given path', () => {
|
|
expect(getPageTitleFromPath('/verify')).toBe('Verify');
|
|
expect(getPageTitleFromPath('/welcome')).toBe(
|
|
'Sign in or Create an account',
|
|
);
|
|
expect(getPageTitleFromPath('/invite/:workspaceInviteHash')).toBe('Invite');
|
|
expect(getPageTitleFromPath('/create/workspace')).toBe('Create Workspace');
|
|
expect(getPageTitleFromPath('/create/profile')).toBe('Create Profile');
|
|
expect(getPageTitleFromPath('/tasks')).toBe('Tasks');
|
|
expect(getPageTitleFromPath('/objects/opportunities')).toBe(
|
|
'Opportunities',
|
|
);
|
|
expect(getPageTitleFromPath('/settings/profile')).toBe('Profile');
|
|
expect(getPageTitleFromPath('/settings/profile/appearance')).toBe(
|
|
'Appearance',
|
|
);
|
|
expect(getPageTitleFromPath('/settings/workspace-members')).toBe(
|
|
'Workspace Members',
|
|
);
|
|
expect(getPageTitleFromPath('/settings/workspace')).toBe('Workspace');
|
|
expect(getPageTitleFromPath('/')).toBe('Twenty');
|
|
expect(getPageTitleFromPath('/random')).toBe('Twenty');
|
|
});
|
|
});
|