Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Remove the obsolete ‘except’ test suite

  • Loading branch information...
commit 63c9e10e270f2becb060b3b79b2b4a2cb2c755ca 1 parent 77030b0
František Hába authored
Showing with 0 additions and 40 deletions.
  1. +0 −40 tests/validators/except.js
40 tests/validators/except.js
View
@@ -1,40 +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: 'string',
- except: [
- 'admin',
- 'administrator',
- 'superadmin'
- ]
- };
-
- [
- 'admin',
- 'administrator',
- 'superadmin'
- ].forEach(function(user) {
- amanda.validate(user, schema, function(error) {
- count += 1;
- test.ok(error);
- });
- });
-
- amanda.validate('superadmin2', schema, function(error) {
- count += 1;
- test.equal(error, undefined);
- });
-
- test.equal(count, 4);
- test.done();
-
-};
Please sign in to comment.
Something went wrong with that request. Please try again.