Browse files

Remove the obsolete ‘divisibleBy’ test suite

  • Loading branch information...
1 parent 63c9e10 commit c2d64deca7986196cc01df103618818611b62d63 @Baggz committed Mar 7, 2012
Showing with 0 additions and 58 deletions.
  1. +0 −58 tests/validators/divisibleBy.js
View
58 tests/validators/divisibleBy.js
@@ -1,58 +0,0 @@
-// Load dependencies
-var amanda = require('../../dist/latest.js');
-
-/**
- * Test #1
- */
-exports['Test #1'] = function(test) {
-
- var count = 0;
-
- var schema = {
- required: true,
- type: 'number',
- divisibleBy: 2
- };
-
- [
- 1,
- 3,
- 5,
- 7,
- 9,
- 11,
- 111,
- 1111
- ].forEach(function(input) {
- amanda.validate(input, schema, function(error) {
- count += 1;
- test.ok(error);
- });
- });
-
- [
- 2,
- 4,
- 6,
- 8,
- 10,
- 12,
- 14,
- 16,
- 18,
- 20,
- 22,
- 40,
- 100,
- 1000
- ].forEach(function(input) {
- amanda.validate(input, schema, function(error) {
- count += 1;
- test.equal(error, undefined);
- });
- });
-
- test.equal(count, 22);
- test.done();
-
-};

0 comments on commit c2d64de

Please sign in to comment.