refactor(frontend): replace legacy action files with TypeScript equivalents

This commit is contained in:
Yiannis
2026-03-11 02:06:59 +02:00
parent e9af15582f
commit 7a5fca6fd8
21 changed files with 173 additions and 243 deletions

View File

@@ -1,8 +1,8 @@
import { ProfilePageActions } from '../../../src/static/js/utils/actions';
import dispatcher from '../../../src/static/js/utils/dispatcher';
import { dispatcher } from '../../../src/static/js/utils/dispatcher';
// Mock the dispatcher module used by ProfilePageActions
jest.mock('../../../src/static/js/utils/dispatcher', () => ({ dispatch: jest.fn() }));
jest.mock('../../../src/static/js/utils/actions/../dispatcher', () => ({ dispatcher: { dispatch: jest.fn() } }));
describe('utils/actions', () => {
describe('ProfilePageActions', () => {