Permalink
Browse files

Remove the obsolete ‘array’ test suite

  • Loading branch information...
1 parent f277eb3 commit a112ade7e9367c0de7cfbc637c15bdc24f0beb0e @Baggz committed Mar 7, 2012
Showing with 0 additions and 77 deletions.
  1. +0 −77 tests/validators/type/array.js
@@ -1,77 +0,0 @@
-// Load dependencies
-var amanda = require('../../../dist/latest.js');
-
-/**
- * Schema
- */
-var schema = {
- required: true,
- type: 'array'
-};
-
-/**
- * Test #1
- */
-exports['Test #1'] = function(test) {
-
- var a = 0;
-
- [
- [],
- [1, 2, 3],
- ['a', 'b', 'c'],
- [function() {}, function() {}],
- [{}, {}, {}]
- ].forEach(function(data) {
-
- amanda.validate(data, schema, function(error) {
-
- a += 1;
-
- test.equal(error, undefined);
-
- });
-
- });
-
- test.equal(a, 5);
- test.done();
-
-};
-
-/**
- * Test #2
- */
-exports['Test #2'] = function(test) {
-
- var a = 0;
-
- [
- 'Hello',
- 123,
- true,
- {},
- function() {},
- ].forEach(function(data) {
-
- amanda.validate(data, schema, function(error) {
-
- a += 1;
-
- delete error[0].message;
-
- test.deepEqual(error[0], {
- property: '',
- propertyValue: data,
- validator: 'type',
- validatorValue: 'array'
- });
-
- });
-
- });
-
- test.equal(a, 5);
- test.done();
-
-};

0 comments on commit a112ade

Please sign in to comment.