incubator-callback-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fil...@apache.org
Subject [2/3] git commit: updating network test for first-run check of exec
Date Thu, 29 Mar 2012 23:21:16 GMT
updating network test for first-run check of exec


Project: http://git-wip-us.apache.org/repos/asf/incubator-cordova-js/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-cordova-js/commit/9af5a6a7
Tree: http://git-wip-us.apache.org/repos/asf/incubator-cordova-js/tree/9af5a6a7
Diff: http://git-wip-us.apache.org/repos/asf/incubator-cordova-js/diff/9af5a6a7

Branch: refs/heads/master
Commit: 9af5a6a77942471f360febc6439923b4899e91e9
Parents: d2fc713
Author: Fil Maj <maj.fil@gmail.com>
Authored: Thu Mar 29 16:13:59 2012 -0700
Committer: Fil Maj <maj.fil@gmail.com>
Committed: Thu Mar 29 16:13:59 2012 -0700

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


http://git-wip-us.apache.org/repos/asf/incubator-cordova-js/blob/9af5a6a7/test/test.network.js
----------------------------------------------------------------------
diff --git a/test/test.network.js b/test/test.network.js
index 613f732..ee9d4c7 100644
--- a/test/test.network.js
+++ b/test/test.network.js
@@ -1,11 +1,13 @@
 describe("network", function () {
     var network,
-        exec = require('cordova/exec');
+        exec = require('cordova/exec'),
+        channel = require('cordova/channel');
        
-    it("should fire exec on first-run", function() {
+    it("should fire exec on first-run after CordovaReady fires", function() {
         exec.reset();
 
         network = require('cordova/plugin/network');
+        channel.onCordovaReady.fire();
 
         expect(exec).toHaveBeenCalledWith(jasmine.any(Function), jasmine.any(Function), "NetworkStatus",
"getConnectionInfo", []);
     });


Mime
View raw message