Skip to content

Commit

Permalink
Fix test issues
Browse files Browse the repository at this point in the history
  • Loading branch information
alexk111 committed Jan 18, 2024
1 parent 6cdef38 commit a74d84e
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 7 deletions.
2 changes: 1 addition & 1 deletion tests/main/controllers/browserWindow.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
*/

import { ipcShowBrowserWindowChannel } from '@common/ipc/channels';
import { createBrowserWindowControllers } from '@/controllers/BrowserWindow';
import { createBrowserWindowControllers } from '@/controllers/browserWindow';
import { fixtureIpcMainEvent } from '@tests/infra/fixtures/ipcMain';
import { BrowserWindow } from '@/application/interfaces/browserWindow';

Expand Down
2 changes: 1 addition & 1 deletion tests/main/controllers/trayMenu.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
*/

import { ipcSetTrayMenuChannel } from '@common/ipc/channels';
import { createTrayMenuControllers } from '@/controllers/TrayMenu';
import { createTrayMenuControllers } from '@/controllers/trayMenu';
import { fixtureIpcMainEvent } from '@tests/infra/fixtures/ipcMain';
import { MenuItemsIpc } from '@common/base/menu';
import { fixtureMenuItemIpcA, fixtureMenuItemIpcB } from '@testscommon/base/fixtures/menu';
Expand Down
2 changes: 1 addition & 1 deletion tests/main/data/windowStateStorage.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

import { StateStorage, createStateStorage, windowStateDataStoragKey } from '@common/data/stateStorage';
import { createPersistentWindowState, currentWindowStateVersion, migrateWindowState } from '@/base/state/window';
import { createWindowStateStorage } from '@/data/WindowStateStorage'
import { createWindowStateStorage } from '@/data/windowStateStorage'
import { DataStorageJson } from '@common/application/interfaces/dataStorage';

jest.mock('@common/data/stateStorage');
Expand Down
2 changes: 1 addition & 1 deletion tests/main/data/windowStore.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
*/

import { WindowState, prepareWindowState, mergeWindowStateWithPersistentWindowState } from '@/base/state/window';
import { createWindowStore } from '@/data/WindowStore';
import { createWindowStore } from '@/data/windowStore';
import { createStore } from '@common/data/store';
import { StateStorage } from '@common/data/stateStorage';

Expand Down
3 changes: 1 addition & 2 deletions tests/renderer/ui/components/applicationSettings.spec.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
*/

import { render, screen, fireEvent, act } from '@testing-library/react';
import { createApplicationSettingsComponent, createApplicationSettingsViewModelHook} from '@/ui/components/ApplicationSettings'
import { createApplicationSettingsComponent, createApplicationSettingsViewModelHook} from '@/ui/components/applicationSettings'
import { createAppStateHook } from '@/ui/hooks/appState';
import { fixtureAppState } from '@tests/base/state/fixtures/appState';
import { fixtureAppStore } from '@tests/data/fixtures/appStore';
Expand All @@ -17,7 +17,6 @@ import { ProcessInfo } from '@common/base/process';
import { fixtureAppConfig } from '@tests/base/fixtures/appConfig';
import { fixtureApplicationSettings } from '@tests/base/state/fixtures/applicationSettings';


async function setup(
appState: AppState,
opts?: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
*/

import { render, screen } from '@testing-library/react';
import { createManageProjectsButtonViewModelHook, createManageProjectsButtonComponent } from '@/ui/components/topBar/ManageProjectsButton'
import { createManageProjectsButtonViewModelHook, createManageProjectsButtonComponent } from '@/ui/components/topBar/manageProjectsButton'
import userEvent from '@testing-library/user-event';

async function setup() {
Expand Down

0 comments on commit a74d84e

Please sign in to comment.