Permalink
Browse files

Remove the obsolete ‘maxLength’ test suite

  • Loading branch information...
1 parent 99373b4 commit ce6d936bd977a235e1af5484610f9c1580f50a7a @Baggz committed Mar 7, 2012
Showing with 0 additions and 52 deletions.
  1. +0 −52 tests/validators/maxLength.js
@@ -1,52 +0,0 @@
-// Load dependencies
-var amanda = require('../../dist/latest.js');
-
-/**
- * Test #1
- */
-exports['Test #1'] = function(test) {
-
- var count = 0;
-
- /**
- * Schema
- */
- var schema = {
- required: true,
- type: 'string',
- maxLength: 10
- };
-
- [
- 'a',
- 'ab',
- 'abc',
- 'abcd',
- 'abcde',
- 'abcdef',
- 'abcdefg',
- 'abcdefgh',
- 'abcdefghi',
- 'abcdefghij'
- ].forEach(function(input) {
- amanda.validate(input, schema, function(error) {
- count += 1;
- test.equal(error, undefined);
- });
- });
-
- [
- 'abcdefghijk',
- 'abcdefghijkl',
- 'abcdefghijklm'
- ].forEach(function(input) {
- amanda.validate(input, schema, function(error) {
- count += 1;
- test.ok(error);
- });
- });
-
- test.equal(count, 13);
- test.done();
-
-};

0 comments on commit ce6d936

Please sign in to comment.