Skip to content

Commit 5c2e869

Browse files
committed
chore: fix unit tests
1 parent 6aeac22 commit 5c2e869

File tree

3 files changed

+4
-6
lines changed

3 files changed

+4
-6
lines changed

test/controllers/prepare-controller.ts

+4
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,10 @@ function createTestInjector(data: { hasNativeChanges: boolean }): IInjector {
5454
isFileInIgnoreList: () => false
5555
});
5656

57+
injector.register("bundleValidatorHelper", {
58+
validate: () => ({})
59+
});
60+
5761
const prepareController: PrepareController = injector.resolve("prepareController");
5862
prepareController.emit = (eventName: string, eventData: any) => {
5963
emittedEventNames.push(eventName);

test/platform-commands.ts

-3
Original file line numberDiff line numberDiff line change
@@ -187,9 +187,6 @@ function createTestInjector() {
187187
testInjector.register("addPlatformService", {});
188188
testInjector.register("platformController", {});
189189
testInjector.register("platformCommandHelper", PlatformCommandHelper);
190-
testInjector.register("bundleValidatorHelper", {
191-
validate: () => ({})
192-
});
193190

194191
return testInjector;
195192
}

test/plugins-service.ts

-3
Original file line numberDiff line numberDiff line change
@@ -150,9 +150,6 @@ function createTestInjector() {
150150
testInjector.register("cleanupService", {
151151
setShouldDispose: (shouldDispose: boolean): void => undefined
152152
});
153-
testInjector.register("bundleValidatorHelper", {
154-
validate: () => ({})
155-
});
156153

157154
return testInjector;
158155
}

0 commit comments

Comments
 (0)