From a19b86403f05f29cf894ec0ad4ba9c6f9cfa8ea2 Mon Sep 17 00:00:00 2001 From: Akos Kitta Date: Tue, 31 Jan 2023 13:11:27 +0100 Subject: [PATCH] fix: DI in tests --- arduino-ide-extension/src/browser/create/create-features.ts | 3 ++- .../src/test/browser/workspace-commands.test.ts | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/arduino-ide-extension/src/browser/create/create-features.ts b/arduino-ide-extension/src/browser/create/create-features.ts index a88f8fac5..beb509fee 100644 --- a/arduino-ide-extension/src/browser/create/create-features.ts +++ b/arduino-ide-extension/src/browser/create/create-features.ts @@ -1,11 +1,12 @@ import { FrontendApplicationContribution } from '@theia/core/lib/browser'; import { DisposableCollection } from '@theia/core/lib/common/disposable'; import { Emitter, Event } from '@theia/core/lib/common/event'; +import URI from '@theia/core/lib/common/uri'; import { inject, injectable } from '@theia/core/shared/inversify'; +import { Sketch } from '../../common/protocol'; import { AuthenticationSession } from '../../node/auth/types'; import { ArduinoPreferences } from '../arduino-preferences'; import { AuthenticationClientService } from '../auth/authentication-client-service'; -import { Sketch, URI } from '../contributions/contribution'; import { LocalCacheFsProvider } from '../local-cache/local-cache-fs-provider'; @injectable() diff --git a/arduino-ide-extension/src/test/browser/workspace-commands.test.ts b/arduino-ide-extension/src/test/browser/workspace-commands.test.ts index 8ec223051..8d8b59ab8 100644 --- a/arduino-ide-extension/src/test/browser/workspace-commands.test.ts +++ b/arduino-ide-extension/src/test/browser/workspace-commands.test.ts @@ -34,6 +34,7 @@ import { } from '../../browser/theia/workspace/workspace-commands'; import { Sketch, SketchesService } from '../../common/protocol'; import { SketchesServiceClientImpl } from '../../browser/sketches-service-client-impl'; +import { CreateFeatures } from '../../browser/create/create-features'; disableJSDOM(); @@ -149,6 +150,7 @@ describe('workspace-commands', () => { container .bind(SketchesServiceClientImpl) .toConstantValue({}); + container.bind(CreateFeatures).toConstantValue({}); return container; }