Skip to content
Browse files

Remove the obsolete ‘minItems’ test suite

  • Loading branch information...
1 parent f1ced5f commit 2dc56eaab0b174717b36a8f33b4e0123dd34d84e @Baggz committed
Showing with 0 additions and 47 deletions.
  1. +0 −47 tests/validators/minItems.js
View
47 tests/validators/minItems.js
@@ -1,47 +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: 'array',
- minItems: 2
- };
-
- [
- 2,
- {},
- null,
- function() {},
- 'Hello!',
- [],
- [1]
- ].forEach(function(input) {
- amanda.validate(input, schema, function(error) {
- count += 1;
- test.ok(error);
- });
- });
-
- [
- [1, 2],
- [1, 2, 3],
- [1, 2, 3, 4],
- [1, 2, 3, 4, 5]
- ].forEach(function(input) {
- amanda.validate(input, schema, function(error) {
- count += 1;
- test.equal(error, undefined);
- });
- });
-
- test.equal(count, 11);
- test.done();
-
-};

0 comments on commit 2dc56ea

Please sign in to comment.
Something went wrong with that request. Please try again.