Permalink
Browse files

Remove the obsolete ‘boolean’ test suite

  • Loading branch information...
1 parent a112ade commit 27e315277b7ffa1017f83e61c8227c614b904735 @Baggz committed Mar 7, 2012
Showing with 0 additions and 43 deletions.
  1. +0 −43 tests/validators/type/boolean.js
@@ -1,43 +0,0 @@
-// Load dependencies
-var amanda = require('../../../dist/latest.js');
-
-/**
- * Test #1
- */
-exports['Test #1'] = function(test) {
-
- var count = 0;
-
- var schema = {
- type: 'boolean'
- };
-
- amanda.validate(true, schema, function(error) {
- count += 1;
- test.equal(error, undefined);
- });
-
- amanda.validate(false, schema, function(error) {
- count += 1;
- test.equal(error, undefined);
- });
-
- [
- '123',
- '+@#$~^*{}',
- 'lorem ipsum',
- 123,
- [],
- {},
- function() {}
- ].forEach(function(data) {
- amanda.validate(data, schema, function(error) {
- count += 1;
- test.ok(error);
- });
- });
-
- test.equal(count, 9);
- test.done();
-
-};

0 comments on commit 27e3152

Please sign in to comment.