Skip to content

Commit

Permalink
stub console.log during "ignore unknown" test
Browse files Browse the repository at this point in the history
  • Loading branch information
tyrasd committed Jan 12, 2014
1 parent 38d2c63 commit 503f2d6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions test/test.js
Expand Up @@ -296,7 +296,10 @@ describe("geometries", function () {
}
}]
};
/**/ var _consoleLog = console.log;
/**/ console.log = function() {};
result = togpx(geojson);
/**/ console.log = _consoleLog;
result = (new DOMParser()).parseFromString(result, 'text/xml');
expect(result.getElementsByTagName("wpt")).to.have.length(0);
expect(result.getElementsByTagName("trk")).to.have.length(0);
Expand Down

0 comments on commit 503f2d6

Please sign in to comment.