Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Remove the obsolete ‘maximum’ test

  • Loading branch information...
commit d8a76910b55e917eaa5a604d779605c40dbcf6f2 1 parent d158699
@Baggz authored
Showing with 0 additions and 45 deletions.
  1. +0 −45 tests/validators/maximum.js
View
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();
-
-};
Please sign in to comment.
Something went wrong with that request. Please try again.