You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by pu...@apache.org on 2017/05/10 20:51:08 UTC

cordova-test-platform git commit: no hardcoded api path, making this reusable

Repository: cordova-test-platform
Updated Branches:
  refs/heads/master f447269bf -> 200ddc55a


no hardcoded api path, making this reusable


Project: http://git-wip-us.apache.org/repos/asf/cordova-test-platform/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-test-platform/commit/200ddc55
Tree: http://git-wip-us.apache.org/repos/asf/cordova-test-platform/tree/200ddc55
Diff: http://git-wip-us.apache.org/repos/asf/cordova-test-platform/diff/200ddc55

Branch: refs/heads/master
Commit: 200ddc55a23ef3300cbe93feef1692524e20e49a
Parents: f447269
Author: Jesse MacFadyen <pu...@gmail.com>
Authored: Wed May 10 13:51:00 2017 -0700
Committer: Jesse MacFadyen <pu...@gmail.com>
Committed: Wed May 10 13:51:00 2017 -0700

----------------------------------------------------------------------
 spec/projectApi.spec.js | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-test-platform/blob/200ddc55/spec/projectApi.spec.js
----------------------------------------------------------------------
diff --git a/spec/projectApi.spec.js b/spec/projectApi.spec.js
index 5f5b090..c780ce9 100644
--- a/spec/projectApi.spec.js
+++ b/spec/projectApi.spec.js
@@ -17,7 +17,10 @@
  under the License.
  */
 
-var Api = require("../src/cordova/Api");
+var Api = require("..");
+/*
+    Note: require is expecting the package.json to define "main" with the path to Api.js for the platform.
+*/
 
 describe('can get the Api', function() {
 


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org