Permalink
Browse files

Remove the obsolete ‘length’ test suite

  • Loading branch information...
1 parent c2d64de commit dd1c08286895814a7302c5743443968d2942bdd5 @Baggz committed Mar 7, 2012
Showing with 0 additions and 39 deletions.
  1. +0 −39 tests/validators/length.js
View
@@ -1,39 +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',
- length: 2
- };
-
- [
- 'a',
- 'abc',
- 'abcd'
- ].forEach(function(input) {
- amanda.validate(input, schema, function(error) {
- count += 1;
- test.ok(error);
- });
- });
-
- amanda.validate('ab', schema, function(error) {
- count += 1;
- test.equal(error, undefined);
- });
-
- test.equal(count, 4);
- test.done();
-
-};

0 comments on commit dd1c082

Please sign in to comment.