Skip to content

Commit 4ef6385

Browse files
author
Vladimir Enchev
committed
SHA updated
1 parent 974a6df commit 4ef6385

File tree

2 files changed

+2
-12
lines changed

2 files changed

+2
-12
lines changed

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)