Skip to content

Commit be5af83

Browse files
committed
chore: fix unit tests
1 parent a207a06 commit be5af83

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

test/controllers/prepare-controller.ts

+5
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,11 @@ function createTestInjector(data: { hasNativeChanges: boolean }): IInjector {
4949
getProductionDependencies: () => (<any>[])
5050
});
5151

52+
injector.register("watchIgnoreListService", {
53+
addFileToIgnoreList: () => ({}),
54+
isFileInIgnoreList: () => false
55+
});
56+
5257
const prepareController: PrepareController = injector.resolve("prepareController");
5358
prepareController.emit = (eventName: string, eventData: any) => {
5459
emittedEventNames.push(eventName);

test/services/android-plugin-build-service.ts

+4
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,10 @@ describe('androidPluginBuildService', () => {
7575
hasChangesInShasums: (oldHashes: IStringDictionary, newHashes: IStringDictionary): boolean => !!options.hasChangesInShasums
7676
});
7777

78+
testInjector.register("watchIgnoreListService", {
79+
addFileToIgnoreList: () => ({})
80+
});
81+
7882
fs = testInjector.resolve("fs");
7983
androidBuildPluginService = testInjector.resolve<AndroidPluginBuildService>(AndroidPluginBuildService);
8084
}

0 commit comments

Comments
 (0)