Permalink
Browse files

Remove the obsolete ‘maximum’ test

  • Loading branch information...
1 parent d158699 commit d8a76910b55e917eaa5a604d779605c40dbcf6f2 @Baggz committed Mar 7, 2012
Showing with 0 additions and 45 deletions.
  1. +0 −45 tests/validators/maximum.js
@@ -1,45 +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',
- maximum: 10
- };
-
- [
- 11,
- 100,
- {},
- 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(2, schema, function(error) {
- count += 1;
- test.equal(error, undefined);
- });
-
- test.equal(count, 9);
- test.done();
-
-};

0 comments on commit d8a7691

Please sign in to comment.