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:09:43 UTC

[05/10] 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-contacts/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-plugin-contacts/commit/ab0bf048
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-contacts/tree/ab0bf048
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-contacts/diff/ab0bf048

Branch: refs/heads/master
Commit: ab0bf048569106d8af8988d092d60768ec165e80
Parents: aa3f885
Author: Michal Mocny <mm...@gmail.com>
Authored: Mon May 5 11:11:17 2014 -0400
Committer: Michal Mocny <mm...@gmail.com>
Committed: Mon May 5 12:01:42 2014 -0400

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


http://git-wip-us.apache.org/repos/asf/cordova-plugin-contacts/blob/ab0bf048/test/tests.js
----------------------------------------------------------------------
diff --git a/test/tests.js b/test/tests.js
index 692acfa..91d6167 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.contacts', function() {
+exports.defineAutoTests = function() {
   // global to store a contact so it doesn't have to be created or retrieved multiple times
   // all of the setup/teardown test methods can reference the following variables to make sure to do the right cleanup
   var gContactObj = null;
@@ -368,4 +366,4 @@ registerAutoTests('org.apache.cordova.contacts', function() {
           });
       });
   });
-});
+};