Skip to content

Commit

Permalink
Attempt to fix MacOS GitHub CI
Browse files Browse the repository at this point in the history
  • Loading branch information
JorWo committed May 24, 2024
1 parent f167a29 commit 7699b2f
Show file tree
Hide file tree
Showing 9 changed files with 11 additions and 11 deletions.
1 change: 0 additions & 1 deletion ui/tests/access/AuthorizationService.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import Role from '@/access/Role';
import User, { AnonymousUser } from '@/access/User';

const testUser: User = JSON.parse(process.env.TEST_USER_A as string);
const apiBaseUrl = process.env.NEXT_PUBLIC_API_2_1_BASE_URL as string;

describe('AuthorizationService', () => {

Expand Down
5 changes: 3 additions & 2 deletions ui/tests/app/(index)/_components/AfterLogin.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,9 @@ import * as GroupingsApiService from '@/services/GroupingsApiService';
import * as AuthenticationService from '@/access/AuthenticationService';
import afterLogin from '@/app/(index)/_components/AfterLogin';

jest.mock('@/services/GroupingsApiService');
jest.mock('@/access/AuthenticationService');
jest.mock('src/services/GroupingsApiService');
jest.mock('src/access/AuthenticationService');

const testUser: User = JSON.parse(process.env.TEST_USER_A as string);

describe('AfterLogin', () => {
Expand Down
2 changes: 1 addition & 1 deletion ui/tests/app/(index)/_components/Announcement.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { render, screen } from '@testing-library/react';
import Announcements from '@/app/(index)/_components/Announcements';
import * as GroupingsApiService from '@/services/GroupingsApiService';

jest.mock('@/services/GroupingsApiService');
jest.mock('src/services/GroupingsApiService');

const message = 'test announcement';
const message1 = 'test1 announcement';
Expand Down
2 changes: 1 addition & 1 deletion ui/tests/app/api/cas/login/route.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { NextRequest } from 'next/server';

const baseUrl = process.env.NEXT_PUBLIC_BASE_URL as string;

jest.mock('@/access/AuthenticationService');
jest.mock('src/access/AuthenticationService');

describe('/api/cas/login', () => {

Expand Down
2 changes: 1 addition & 1 deletion ui/tests/app/api/cas/logout/route.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { handleLogout } from '@/access/AuthenticationService';

const baseUrl = process.env.NEXT_PUBLIC_BASE_URL as string;

jest.mock('@/access/AuthenticationService');
jest.mock('src/access/AuthenticationService');

describe('/api/cas/logout', () => {

Expand Down
2 changes: 1 addition & 1 deletion ui/tests/components/layout/navbar/Navbar.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import Role from '@/access/Role';

const testUser: User = JSON.parse(process.env.TEST_USER_A as string);

jest.mock('@/access/AuthenticationService');
jest.mock('src/access/AuthenticationService');

describe('Navbar', () => {

Expand Down
2 changes: 1 addition & 1 deletion ui/tests/components/modal/TimeoutModal.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import * as AuthenticationService from '@/access/AuthenticationService';

const testUser: User = JSON.parse(process.env.TEST_USER_A as string);

jest.mock('@/access/AuthenticationService');
jest.mock('src/access/AuthenticationService');

describe('TimeoutModal', () => {

Expand Down
2 changes: 1 addition & 1 deletion ui/tests/services/EmailService.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import * as AuthenticationService from '@/access/AuthenticationService';
const baseUrl = process.env.NEXT_PUBLIC_API_BASE_URL as string;
const testUser: User = JSON.parse(process.env.TEST_USER_A as string);

jest.mock('@/access/AuthenticationService');
jest.mock('src/access/AuthenticationService');

describe('EmailService', () => {

Expand Down
4 changes: 2 additions & 2 deletions ui/tests/services/GroupingsApiService.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@ import User from '@/access/User';
const baseUrl = process.env.NEXT_PUBLIC_API_2_1_BASE_URL as string;
const testUser: User = JSON.parse(process.env.TEST_USER_A as string);

jest.mock('@/access/AuthenticationService');
jest.mock('@/services/EmailService');
jest.mock('src/access/AuthenticationService');
jest.mock('src/services/EmailService');

describe('GroupingsService', () => {

Expand Down

0 comments on commit 7699b2f

Please sign in to comment.