Permalink
Browse files

explicit globals for server test/bench

  • Loading branch information...
1 parent 55fe615 commit 64ba61c75d192ef921e21667746c9eb6e2a208e4 akdubya committed Oct 27, 2010
Showing with 6 additions and 2 deletions.
  1. +2 −0 benchmark/server.js
  2. +1 −1 test/core.js
  3. +3 −1 test/server.js
View
2 benchmark/server.js
@@ -24,6 +24,8 @@ function pad(amt, val, pre) {
console.log("ops/ms");
console.log("------");
+global.dust = dust;
+
for (var key in dustBench.benches) {
dustBench(suite, key);
}
View
2 test/core.js
@@ -1,6 +1,6 @@
(function(exports){
-exports.coreSetup = function(suite, auto, dust) {
+exports.coreSetup = function(suite, auto) {
auto.forEach(function(test) {
var name = test.name;
View
4 test/server.js
@@ -28,6 +28,8 @@ var suite = new uutest.Suite({
}
});
-coreSetup(suite, tests.slice(1), dust);
+global.dust = dust;
+
+coreSetup(suite, tests.slice(1));
suite.run();

0 comments on commit 64ba61c

Please sign in to comment.