Skip to content
Browse files

Remove the obsolete ‘minimum’ test suite

  • Loading branch information...
1 parent 2dc56ea commit 99373b495402caa35522315f51d004b09ca0877c @Baggz committed
Showing with 0 additions and 44 deletions.
  1. +0 −44 tests/validators/minimum.js
View
44 tests/validators/minimum.js
@@ -1,44 +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',
- minimum: 10
- };
-
- [
- 2,
- {},
- null,
- [],
- function() {},
- 'Hello!',
- ].forEach(function(input) {
- amanda.validate(input, schema, function(error) {
- count += 1;
- test.ok(error);
- });
- });
-
- amanda.validate(10, schema, function(error) {
- count += 1;
- test.equal(error, undefined);
- });
-
- amanda.validate(12, schema, function(error) {
- count += 1;
- test.equal(error, undefined);
- });
-
- test.equal(count, 8);
- test.done();
-
-};

0 comments on commit 99373b4

Please sign in to comment.
Something went wrong with that request. Please try again.