mirror of
https://github.com/meteor/meteor.git
synced 2026-05-02 03:01:46 -04:00
Test: Ensure message when platform already added
If the platform is already added, it should provide the appropriate message.
This commit is contained in:
4
tools/tests/cordova-platforms.js
vendored
4
tools/tests/cordova-platforms.js
vendored
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user