You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by fi...@apache.org on 2012/03/30 01:21:16 UTC
[2/3] git commit: updating network test for first-run check of exec
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 <ma...@gmail.com>
Authored: Thu Mar 29 16:13:59 2012 -0700
Committer: Fil Maj <ma...@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", []);
});