Test: Ensure message when platform already added

If the platform is already added, it should provide the appropriate message.
This commit is contained in:
Jesse Rosenberger
2016-10-07 14:17:11 +03:00
parent 3359d2397c
commit 8c948d2ebc

View File

@@ -22,6 +22,10 @@ selftest.define("add cordova platforms", ["cordova"], function () {
run.match("added platform");
run.expectExit(0);
run = s.run("add-platform", "android");
run.matchErr("android: platform is already added");
run.expectExit(1);
run = s.run("remove-platform", "foo");
run.matchErr("foo: platform is not");
run.expectExit(1);