You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by mm...@apache.org on 2014/05/05 17:06:57 UTC

[36/37] 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/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-plugin-device/commit/f75e72a0
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-device/tree/f75e72a0
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-device/diff/f75e72a0

Branch: refs/heads/cdvtest
Commit: f75e72a0b7b3333504d639e950d3c3578e99d7f0
Parents: df1b172
Author: Michal Mocny <mm...@gmail.com>
Authored: Mon May 5 11:02:10 2014 -0400
Committer: Michal Mocny <mm...@gmail.com>
Committed: Mon May 5 11:02:10 2014 -0400

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


http://git-wip-us.apache.org/repos/asf/cordova-plugin-device/blob/f75e72a0/test/tests.js
----------------------------------------------------------------------
diff --git a/test/tests.js b/test/tests.js
index 340590f..3b88049 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', function() {
+exports.defineAutoTests = function() {
   describe('Device Information (window.device)', function () {
     it("should exist", function() {
       expect(window.device).toBeDefined();
@@ -35,4 +33,4 @@ registerAutoTests('org.apache.cordova.device', function() {
       expect((new String(window.device.model)).length > 0).toBe(true);
     });
   });
-});
+};