Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ describe('ExtensionStatusModal Component', () => {
test('should test formatToRelativeTime function', () => {
const timestamp = 1640995200;
const result = formatToRelativeTime(timestamp);
expect(result).toBe('3 years ago');
expect(result).toMatch(/\d+ years ago/); // Match any number of years ago
});

test('should open extension request form when request extension button is clicked', () => {
Expand Down
2 changes: 1 addition & 1 deletion __tests__/Unit/Components/Navbar/Navbar.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ describe('Navbar', () => {
);
expect(eventLink).toHaveAttribute(
'href',
'https://www.realdevsquad.com/events.html'
'https://www.realdevsquad.com/events'
);
expect(memberLink).toHaveAttribute(
'href',
Expand Down
2 changes: 1 addition & 1 deletion __tests__/Unit/Components/Tasks/Card.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -548,7 +548,7 @@ describe('Task card', () => {
{}
);
const spanElement = screen.getByTestId('started-on');
expect(spanElement).toHaveTextContent('Started 4 years ago'); // Mocked date from moment
expect(spanElement).toHaveTextContent(/Started \d+ years ago/);
});
it('Should show the status of the task', () => {
renderWithRouter(
Expand Down
1 change: 1 addition & 0 deletions src/components/Calendar/UserSearchField.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ const SearchField = ({ onSearchTextSubmitted, loading }: SearchFieldProps) => {
{displayList.map((user: userDataType) => (
<li
key={user.id}
role="listitem"
className={classNames.suggestion}
onClick={() => {
setSearchText(user.username || '');
Expand Down
2 changes: 1 addition & 1 deletion src/constants/url.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ export const MINE_TASKS_URL = `${process.env.NEXT_PUBLIC_BASE_URL}/tasks/self`;
export const USER_PROFILE_URL = 'https://my.realdevsquad.com/profile';
export const HOME_URL = 'https://realdevsquad.com';
export const WELCOME_URL = 'https://welcome.realdevsquad.com';
export const EVENTS_URL = 'https://www.realdevsquad.com/events.html';
export const EVENTS_URL = 'https://www.realdevsquad.com/events';
export const CRYPTO_URL = 'https://crypto.realdevsquad.com';
export const STATUS_URL = 'https://status.realdevsquad.com';
export const LOGIN_URL = `https://github.com/login/oauth/authorize?client_id=23c78f66ab7964e5ef97&state=${STATUS_URL}`;
Expand Down