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 2014/08/07 21:21:21 UTC

[06/12] git commit: Changing cdvtest format to use module exports

Changing cdvtest format to use module exports


Project: http://git-wip-us.apache.org/repos/asf/cordova-plugin-device-motion/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-plugin-device-motion/commit/25de1193
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-device-motion/tree/25de1193
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-device-motion/diff/25de1193

Branch: refs/heads/master
Commit: 25de11937baa370f2b669f0bc5fe703b2bf61e32
Parents: 7e632fc
Author: Michal Mocny <mm...@gmail.com>
Authored: Mon May 5 12:02:51 2014 -0400
Committer: Michal Mocny <mm...@gmail.com>
Committed: Mon May 5 12:07:52 2014 -0400

----------------------------------------------------------------------
 test/tests.js | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-plugin-device-motion/blob/25de1193/test/tests.js
----------------------------------------------------------------------
diff --git a/test/tests.js b/test/tests.js
index daf5ff7..f85e695 100644
--- a/test/tests.js
+++ b/test/tests.js
@@ -1,6 +1,4 @@
-// Eventually, require cdvtest plugin, for now its global
-
-registerAutoTests('org.apache.cordova.device-motion', function() {
+exports.defineAutoTests = function() {
   describe('Accelerometer (navigator.accelerometer)', function () {
     var fail = function(done) {
       expect(true).toBe(false);
@@ -153,4 +151,4 @@ registerAutoTests('org.apache.cordova.device-motion', function() {
       });
     });
   });
-});
+};