cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mmo...@apache.org
Subject [36/37] git commit: Changing cdvtest format to use module exports
Date Mon, 05 May 2014 15:06:57 GMT
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 <mmocny@gmail.com>
Authored: Mon May 5 11:02:10 2014 -0400
Committer: Michal Mocny <mmocny@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);
     });
   });
-});
+};


Mime
View raw message