Permalink
Browse files

[tests] Adds balancer tests

  • Loading branch information...
1 parent 964c9bb commit 6879abe3878500042c45b83ef00022e57e64d05e @dscape committed Dec 13, 2012
Showing with 3,253 additions and 4 deletions.
  1. +1 −0 .gitignore
  2. +12 −0 tests/balancers-tests.js
  3. +2 −2 tests/core-tests.js
  4. +2,826 −0 tests/fixtures/balancers-args.json
  5. +411 −0 tests/fixtures/balancers.json
  6. +1 −2 tests/macros.js
View
@@ -8,6 +8,7 @@ lib-cov
*.pid
*.gz
+wip
pids
logs
results
View
@@ -0,0 +1,12 @@
+var macros = require('./macros');
+
+//
+// Our `balancers` tests
+// should match `tests/fixtures/balancers.json`
+//
+macros.match_fixtures_test('balancers', function runTest(logger) {
+ macros.args_for_fixtures('balancers').forEach(function (arg) {
+ arg.length = 3;
+ logger.log.apply(logger, [].slice.call(arg, 0));
+ });
+});
View
@@ -1,8 +1,8 @@
var macros = require('./macros');
//
-// Our `master` tests
-// should match `tests/fixtures/master.json`
+// Our `core` tests
+// should match `tests/fixtures/core.json`
//
macros.match_fixtures_test('core', function runTest(logger) {
macros.args_for_fixtures('core').forEach(function (arg) {
Oops, something went wrong.

0 comments on commit 6879abe

Please sign in to comment.