Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Remove the obsolete ‘minLength’ test suite

  • Loading branch information...
commit 4f4fadec15976ddc630e3c8a7f3cab422d2ee529 1 parent ce6d936
@Baggz authored
Showing with 0 additions and 47 deletions.
  1. +0 −47 tests/validators/minLength.js
View
47 tests/validators/minLength.js
@@ -1,47 +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',
- minLength: 2
- };
-
- [
- '',
- 'a'
- ].forEach(function(input) {
- amanda.validate(input, schema, function(error) {
- count += 1;
- test.ok(error);
- });
- });
-
- [
- 'ab',
- 'abc',
- 'abcd',
- 'abcde',
- 'abcdef',
- 'abcdefg',
- ].forEach(function(input) {
- amanda.validate(input, schema, function(error) {
- count += 1;
- test.equal(error, undefined);
- });
- });
-
- test.equal(count, 8);
- test.done();
-
-};
Please sign in to comment.
Something went wrong with that request. Please try again.