Skip to content

Commit

Permalink
fix: DI in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Akos Kitta committed Jan 31, 2023
1 parent c3eaca0 commit a19b864
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 2 additions & 1 deletion arduino-ide-extension/src/browser/create/create-features.ts
Original file line number Diff line number Diff line change
@@ -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()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand Down Expand Up @@ -149,6 +150,7 @@ describe('workspace-commands', () => {
container
.bind(SketchesServiceClientImpl)
.toConstantValue(<SketchesServiceClientImpl>{});
container.bind(CreateFeatures).toConstantValue(<CreateFeatures>{});
return container;
}

Expand Down

0 comments on commit a19b864

Please sign in to comment.