Skip to content

Commit

Permalink
refactor: fix ci
Browse files Browse the repository at this point in the history
  • Loading branch information
Jocs committed Sep 19, 2024
1 parent 63faf08 commit 37365ec
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
*/

import { AuthzIoLocalService, IAuthzIoService, ILogService, Inject, Injector, IUniverInstanceService, LocaleType, LogLevel, Plugin, Univer, UniverInstanceType } from '@univerjs/core';
import { DocSelectionManagerService } from '@univerjs/docs';
import { EditorService, IEditorService } from '@univerjs/docs-ui';
import { LexerTreeBuilder } from '@univerjs/engine-formula';
import { IRenderManagerService, RenderManagerService } from '@univerjs/engine-render';
Expand Down Expand Up @@ -68,6 +69,7 @@ export function createCommandTestBed(workbookData?: IWorkbookData, dependencies?
injector.add([ISheetSelectionRenderService, { useClass: SheetSelectionRenderService }]);
injector.add([SheetsSelectionsService]);
injector.add([LexerTreeBuilder]);
injector.add([DocSelectionManagerService]);
injector.add([IFormulaPromptService, { useClass: FormulaPromptService }]);
injector.add([IEditorBridgeService, { useClass: EditorBridgeService }]);
injector.add([IEditorService, { useClass: EditorService }]);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
* limitations under the License.
*/

import type { Injector, Univer } from '@univerjs/core';
import { ICommandService, IUniverInstanceService, RANGE_TYPE, RedoCommand, UndoCommand } from '@univerjs/core';
import {
SetRangeValuesCommand,
Expand All @@ -23,16 +22,17 @@ import {
SheetsSelectionsService,
} from '@univerjs/sheets';
import { afterEach, beforeEach, describe, expect, it } from 'vitest';
import type { Injector, Univer } from '@univerjs/core';

import { InsertFunctionCommand } from '../../commands/insert-function.command';
import type { IInsertFunctionOperationParams } from '../insert-function.operation';
import {
InsertFunctionOperation,
isMultiRowsColumnsRange,
isNumberCell,
isSingleCell,
} from '../insert-function.operation';
import { createCommandTestBed } from './create-command-test-bed';
import type { IInsertFunctionOperationParams } from '../insert-function.operation';

describe('Test insert function operation', () => {
let univer: Univer;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
*/

import { ILogService, Inject, Injector, IUniverInstanceService, LocaleType, LogLevel, Plugin, Univer, UniverInstanceType } from '@univerjs/core';
import { DocSelectionManagerService } from '@univerjs/docs';
import { EditorService, IEditorService } from '@univerjs/docs-ui';
import { CalculateFormulaService, DefinedNamesService, FormulaCurrentConfigService, FormulaDataModel, FormulaRuntimeService, IDefinedNamesService, IFormulaCurrentConfigService, IFormulaRuntimeService, LexerTreeBuilder } from '@univerjs/engine-formula';
import { IRenderManagerService, RenderManagerService } from '@univerjs/engine-render';
Expand Down Expand Up @@ -87,6 +88,7 @@ export function createCommandTestBed(workbookData?: IWorkbookData, dependencies?
injector.add([CalculateFormulaService]);
injector.add([FormulaDataModel]);
injector.add([LexerTreeBuilder]);
injector.add([DocSelectionManagerService]);
injector.add([IDefinedNamesService, { useClass: DefinedNamesService }]);
injector.add([IFormulaRuntimeService, { useClass: FormulaRuntimeService }]);
injector.add([IFormulaCurrentConfigService, { useClass: FormulaCurrentConfigService }]);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ import {
UndoCommand,
UniverInstanceType,
} from '@univerjs/core';
import { DocSelectionManagerService } from '@univerjs/docs';
import { EditorService, IEditorService } from '@univerjs/docs-ui';
import { IRenderManagerService, RenderManagerService } from '@univerjs/engine-render';
import {
Expand All @@ -33,8 +34,8 @@ import {
SetSelectionsOperation,
SheetsSelectionsService,
} from '@univerjs/sheets';
import { IPlatformService, IShortcutService, PlatformService, ShortcutService } from '@univerjs/ui';

import { IPlatformService, IShortcutService, PlatformService, ShortcutService } from '@univerjs/ui';
import { beforeEach, describe, expect, it } from 'vitest';
import type { ICellData, Injector, IStyleData, Nullable, Univer, Workbook } from '@univerjs/core';
import { AutoFillController } from '../../../controllers/auto-fill.controller';
Expand Down Expand Up @@ -285,6 +286,7 @@ describe('Test auto fill rules in controller', () => {

beforeEach(() => {
const testBed = createCommandTestBed(TEST_WORKBOOK_DATA, [
[DocSelectionManagerService],
[ISheetSelectionRenderService, { useClass: SheetSelectionRenderService }],
[IAutoFillService, { useClass: AutoFillService }],
[IShortcutService, { useClass: ShortcutService }],
Expand Down

0 comments on commit 37365ec

Please sign in to comment.