Skip to content

Commit b8b22aa

Browse files
Fix unit tests and linter
1 parent b9cdb95 commit b8b22aa

File tree

2 files changed

+4
-7
lines changed

2 files changed

+4
-7
lines changed

test/plugins-service.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ import {Builder} from "../lib/tools/broccoli/builder";
2828
import {AndroidProjectService} from "../lib/services/android-project-service";
2929
import {AndroidToolsInfo} from "../lib/android-tools-info";
3030
import {assert} from "chai";
31+
import NodeModulesTreeLib = require("../lib/tools/broccoli/trees/node-modules-tree");
3132
import * as path from "path";
3233
import * as temp from "temp";
3334
temp.track();
@@ -61,6 +62,7 @@ function createTestInjector() {
6162
testInjector.register("staticConfig", StaticConfig);
6263
testInjector.register("hooksService", stubs.HooksServiceStub);
6364
testInjector.register("commandsService", CommandsService);
65+
testInjector.register("nodeModulesTree", NodeModulesTreeLib.NodeModulesTree);
6466
testInjector.register("commandsServiceProvider", {
6567
registerDynamicSubCommands: () => { /* intentionally empty body */ }
6668
});

test/stubs.ts

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -253,19 +253,15 @@ export class PlatformsDataStub implements IPlatformsData {
253253
public getPlatformData(platform: string): IPlatformData {
254254
return {
255255
frameworkPackageName: "",
256-
normalizedPlatformName: "",
257256
platformProjectService: new PlatformProjectServiceStub(),
258257
emulatorServices: undefined,
259258
projectRoot: "",
259+
normalizedPlatformName: "",
260+
appDestinationDirectoryPath: "",
260261
deviceBuildOutputPath: "",
261262
validPackageNamesForDevice: [],
262263
frameworkFilesExtensions: [],
263-
frameworkVersion: "",
264-
appDestinationDirectoryPath: "",
265264
relativeToFrameworkConfigurationFilePath: "",
266-
preparePluginNativeCode: () => Future.fromResult(),
267-
removePluginNativeCode: () => Future.fromResult(),
268-
afterPrepareAllPlugins: () => Future.fromResult()
269265
};
270266
}
271267

@@ -285,7 +281,6 @@ export class PlatformProjectServiceStub implements IPlatformProjectService {
285281
deviceBuildOutputPath: "",
286282
validPackageNamesForDevice: [],
287283
frameworkFilesExtensions: [],
288-
frameworkVersion: "",
289284
appDestinationDirectoryPath: "",
290285
relativeToFrameworkConfigurationFilePath: ""
291286
};

0 commit comments

Comments
 (0)