Skip to content

Commit 27c2944

Browse files
author
Vladimir Enchev
committed
SHA updated
1 parent 974a6df commit 27c2944

File tree

3 files changed

+3
-12
lines changed

3 files changed

+3
-12
lines changed

test/ios-project-service.ts

+1
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,7 @@ function createTestInjector(projectPath: string, projectName: string): IInjector
8282
testInjector.register("xcprojService", {});
8383
testInjector.register("pluginVariablesService", PluginVariablesService);
8484
testInjector.register("pluginVariablesHelper", PluginVariablesHelper);
85+
testInjector.register("androidProcessService", {});
8586
return testInjector;
8687
}
8788

test/platform-service.ts

+1-11
Original file line numberDiff line numberDiff line change
@@ -335,17 +335,7 @@ describe('Platform Service Tests', () => {
335335
projectData.projectDir = tempFolder;
336336

337337
platformService = testInjector.resolve("platformService");
338-
let oldLoggerWarner = testInjector.resolve("$logger").warn;
339-
let warnings: string = "";
340-
try {
341-
testInjector.resolve("$logger").warn = (text: string) => warnings += text;
342-
platformService.preparePlatform("android").wait();
343-
} finally {
344-
testInjector.resolve("$logger").warn = oldLoggerWarner;
345-
}
346-
347-
// Asserts that prepare has caught invalid xml
348-
assert.isFalse(warnings.indexOf("has errors") !== -1);
338+
assert.throws(() => platformService.preparePlatform("android").wait());
349339
});
350340
});
351341
});

0 commit comments

Comments
 (0)