Skip to content

Commit 0074887

Browse files
Fatme HavaluovaFatme Havaluova
Fatme Havaluova
authored and
Fatme Havaluova
committed
Fix unit tests
1 parent d5b46e1 commit 0074887

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/plugins-service.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -520,7 +520,7 @@ describe("Plugins service", () => {
520520
`\n@#[line:1,col:39].` +
521521
`\n@#[line:1,col:39].`;
522522
mockBeginCommand(testInjector, expectedErrorMessage);
523-
pluginsService.prepare(pluginJsonData).wait();
523+
pluginsService.prepare(pluginJsonData, "android").wait();
524524
});
525525
it("merges AndroidManifest.xml and produces correct xml", () => {
526526
let pluginName = "mySamplePlugin";
@@ -582,7 +582,7 @@ describe("Plugins service", () => {
582582
let pluginConfigurationFilePath = path.join(pluginPlatformsDirPath, "AndroidManifest.xml");
583583
fs.writeFile(pluginConfigurationFilePath, xml).wait();
584584

585-
pluginsService.prepare(pluginJsonData).wait();
585+
pluginsService.prepare(pluginJsonData, "android").wait();
586586

587587
let expectedXml = '<?xmlversion="1.0"encoding="UTF-8"?><manifestxmlns:android="http://schemas.android.com/apk/res/android"package="com.example.android.basiccontactables"android:versionCode="1"android:versionName="1.0"><uses-permissionandroid:name="android.permission.READ_EXTERNAL_STORAGE"/><uses-permissionandroid:name="android.permission.WRITE_EXTERNAL_STORAGE"/><uses-permissionandroid:name="android.permission.INTERNET"/><applicationandroid:allowBackup="true"android:icon="@drawable/ic_launcher"android:label="@string/app_name"android:theme="@style/Theme.Sample"><activityandroid:name="com.example.android.basiccontactables.MainActivity"android:label="@string/app_name"android:launchMode="singleTop"><meta-dataandroid:name="android.app.searchable"android:resource="@xml/searchable"/><intent-filter><actionandroid:name="android.intent.action.SEARCH"/></intent-filter><intent-filter><actionandroid:name="android.intent.action.MAIN"/></intent-filter></activity></application><uses-permissionandroid:name="android.permission.READ_CONTACTS"/></manifest>';
588588
expectedXml = helpers.stringReplaceAll(expectedXml, EOL, "");

0 commit comments

Comments
 (0)