@@ -93,7 +93,7 @@ def verify_update(self, output):
93
93
assert "Platform android successfully removed" in output
94
94
assert "Successfully removed plugin tns-core-modules" in output
95
95
assert "Successfully removed plugin tns-core-modules-widgets" in output
96
- assert "Project successfully created " in output
96
+ assert "Platform android successfully added " in output
97
97
assert "Successfully installed plugin tns-core-modules" in output
98
98
99
99
@unittest .skipIf (Java .version () != "1.8" , "Run only if Java version is 8." )
@@ -170,12 +170,11 @@ def test_420_platform_add_existing_platform(self):
170
170
assert "Platform android already added" in output
171
171
172
172
def test_421_platform_add_android_wrong_option (self ):
173
-
174
173
# frameworkPath point to missing file
175
174
output = Tns .platform_add_android (attributes = {"--path" : self .app_name , "--frameworkPath" : "invalidFile.tgz" },
176
175
assert_success = False )
177
- assert "npm ERR!" in output or "exit code " in output
178
- assert "invalidFile.tgz " in output
176
+ assert "Invalid frameworkPath: invalidFile.tgz " in output
177
+ assert "Please ensure the specified frameworkPath exists. " in output
179
178
180
179
# Wrong frameworkPath option
181
180
output = Tns .platform_add_android (attributes = {"--path" : self .app_name , "--" + invalid : "tns-android.tgz" },
@@ -188,7 +187,6 @@ def test_421_platform_add_android_wrong_option(self):
188
187
assert "Usage" in output
189
188
190
189
def test_430_platform_remove_missing_invalid_or_empty_platform (self ):
191
-
192
190
output = Tns .platform_remove (platform = Platform .ANDROID , attributes = {"--path" : self .app_name },
193
191
assert_success = False )
194
192
assert "The platform android is not added to this project"
0 commit comments