Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

test fix

  • Loading branch information...
commit bdb857cc33f598dbf2344579c1cd6126b3f008bd 1 parent 6bbadcf
@sebv sebv authored
View
9 test/common/typing-test-base.coffee
@@ -300,10 +300,11 @@ test = (browserName) ->
describe "wd.remote", ->
it "should work", (done) ->
browser = wd.remote {}
- browser.on "status", (info) ->
- console.log "\u001b[36m%s\u001b[0m", info
- browser.on "command", (meth, path) ->
- console.log " > \u001b[33m%s\u001b[0m: %s", meth, path
+ unless process.env.WD_COV?
+ browser.on "status", (info) ->
+ console.log "\u001b[36m%s\u001b[0m", info
+ browser.on "command", (meth, path) ->
+ console.log " > \u001b[33m%s\u001b[0m: %s", meth, path
done null
describe "init", ->
View
14 test/common/typing-test-base.js
@@ -377,12 +377,14 @@
describe("wd.remote", function() {
return it("should work", function(done) {
browser = wd.remote({});
- browser.on("status", function(info) {
- return console.log("\u001b[36m%s\u001b[0m", info);
- });
- browser.on("command", function(meth, path) {
- return console.log(" > \u001b[33m%s\u001b[0m: %s", meth, path);
- });
+ if (process.env.WD_COV == null) {
+ browser.on("status", function(info) {
+ return console.log("\u001b[36m%s\u001b[0m", info);
+ });
+ browser.on("command", function(meth, path) {
+ return console.log(" > \u001b[33m%s\u001b[0m: %s", meth, path);
+ });
+ }
return done(null);
});
});
Please sign in to comment.
Something went wrong with that request. Please try again.