Permalink
Browse files

Remove the obsolete ‘exclusiveMinimum’ test suite

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

0 comments on commit 2b5750f

Please sign in to comment.