Skip to content

Commit 8abd9e3

Browse files
committed
chore: fix tests
1 parent ee05e03 commit 8abd9e3

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

test/platform-commands.ts

+3
Original file line numberDiff line numberDiff line change
@@ -179,6 +179,9 @@ function createTestInjector() {
179179
testInjector.register("pacoteService", {
180180
extractPackage: async (packageName: string, destinationDirectory: string, options?: IPacoteExtractOptions): Promise<void> => undefined
181181
});
182+
testInjector.register("optionsTracker", {
183+
trackOptions: () => Promise.resolve(null)
184+
});
182185
testInjector.register("usbLiveSyncService", ({}));
183186

184187
return testInjector;

test/plugins-service.ts

+3
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,9 @@ function createTestInjector() {
7373
testInjector.register("logger", stubs.LoggerStub);
7474
testInjector.register("staticConfig", StaticConfig);
7575
testInjector.register("hooksService", stubs.HooksServiceStub);
76+
testInjector.register("optionsTracker", {
77+
trackOptions: () => Promise.resolve(null)
78+
});
7679
testInjector.register("commandsService", CommandsService);
7780
testInjector.register("commandsServiceProvider", {
7881
registerDynamicSubCommands: () => { /* intentionally empty body */ }

0 commit comments

Comments
 (0)