Skip to content

Commit 644ad0b

Browse files
Fatme HavaluovaFatme Havaluova
Fatme Havaluova
authored and
Fatme Havaluova
committed
Fix unit tests
1 parent edfa867 commit 644ad0b

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

test/platform-commands.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,9 @@ function createTestInjector() {
9999
testInjector.register("commandsServiceProvider", {
100100
registerDynamicSubCommands: () => {}
101101
});
102-
102+
testInjector.register("commandsService", {
103+
tryExecuteCommand: () => {}
104+
});
103105

104106
return testInjector;
105107
}

test/platform-service.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,9 @@ function createTestInjector() {
3838
testInjector.register('projectDataService', stubs.ProjectDataService);
3939
testInjector.register('prompter', {});
4040
testInjector.register('lockfile', stubs.LockFile);
41+
testInjector.register("commandsService", {
42+
tryExecuteCommand: () => {}
43+
});
4144

4245
return testInjector;
4346
}

0 commit comments

Comments
 (0)