Skip to content

Commit 38e7804

Browse files
Fatme HavaluovaFatme Havaluova
Fatme Havaluova
authored and
Fatme Havaluova
committed
Fix unit tests
1 parent b357aae commit 38e7804

File tree

2 files changed

+13
-2
lines changed

2 files changed

+13
-2
lines changed

test/plugins-service.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -553,7 +553,10 @@ describe("Plugins service", () => {
553553
frameworkPackageName: "tns-android",
554554
configurationFileName: "AndroidManifest.xml",
555555
configurationFilePath: path.join(appDestinationDirectoryPath, "AndroidManifest.xml"),
556-
mergeXmlConfig: [{ "nodename": "manifest", "attrname": "*" }]
556+
mergeXmlConfig: [{ "nodename": "manifest", "attrname": "*" }],
557+
platformProjectService: {
558+
preparePluginNativeCode: (pluginData: IPluginData) => (() => {}).future<void>()()
559+
}
557560
}
558561
}
559562

test/stubs.ts

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,9 @@ export class PlatformsDataStub implements IPlatformsData {
240240
validPackageNamesForDevice: [],
241241
frameworkFilesExtensions: [],
242242
appDestinationDirectoryPath: "",
243-
appResourcesDestinationDirectoryPath: ""
243+
appResourcesDestinationDirectoryPath: "",
244+
preparePluginNativeCode: () => Future.fromResult(),
245+
removePluginNativeCode: () => Future.fromResult()
244246
};
245247
}
246248

@@ -297,6 +299,12 @@ export class PlatformProjectServiceStub implements IPlatformProjectService {
297299
updatePlatform(currentVersion: string, newVersion: string): IFuture<void> {
298300
return Future.fromResult();
299301
}
302+
preparePluginNativeCode(pluginData: IPluginData): IFuture<void> {
303+
return Future.fromResult();
304+
}
305+
removePluginNativeCode(pluginData: IPluginData): IFuture<void> {
306+
return Future.fromResult();
307+
}
300308
}
301309

302310
export class ProjectDataService implements IProjectDataService {

0 commit comments

Comments
 (0)