Skip to content

Commit ea73872

Browse files
committed
tests: fix tests
1 parent 663736e commit ea73872

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

test/project-service.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -459,7 +459,8 @@ describe("Project Service Tests", () => {
459459
const projectDataService = testInjector.resolve<IProjectDataService>("projectDataService");
460460
const projectData: any = {
461461
projectDir: "projectDir",
462-
projectId: "projectId"
462+
projectId: "projectId",
463+
projectIdentifiers: { android: "projectId", ios: "projectId"}
463464
};
464465

465466
let returnedProjectData: any = null;

test/stubs.ts

+3-1
Original file line numberDiff line numberDiff line change
@@ -247,9 +247,10 @@ export class ProjectDataStub implements IProjectData {
247247
projectDir: string;
248248
projectName: string;
249249
get platformsDir(): string {
250-
return "";
250+
return this.plafromsDir;
251251
}
252252
set platformsDir(value) {
253+
this.plafromsDir = value;
253254
}
254255
projectFilePath: string;
255256
projectIdentifiers: Mobile.IProjectIdentifier;
@@ -260,6 +261,7 @@ export class ProjectDataStub implements IProjectData {
260261
devDependencies: IStringDictionary;
261262
projectType: string;
262263
appResourcesDirectoryPath: string;
264+
private plafromsDir: string = "";
263265
public androidManifestPath: string;
264266
public infoPlistPath: string;
265267
public appGradlePath: string;

0 commit comments

Comments
 (0)