Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Remove the obsolete ‘alpha’ test suite

  • Loading branch information...
commit 0cd0f051a2bb5c1b251722048065deeff0967c78 1 parent 2b5750f
@Baggz authored
Showing with 0 additions and 50 deletions.
  1. +0 −50 tests/validators/format/alpha.js
View
50 tests/validators/format/alpha.js
@@ -1,50 +0,0 @@
-// Load dependencies
-var amanda = require('../../../dist/latest.js');
-
-/**
- * Test #1
- */
-exports['Test #1'] = function(test) {
-
- var count = 0;
-
- var schema = {
- required: true,
- format: 'alpha'
- };
-
- [
- 'abc',
- 'ABC',
- 'Abc',
- 'aBc'
- ].forEach(function(data) {
- amanda.validate(data, schema, function(error) {
- count += 1;
- test.equal(error, undefined);
- });
- });
-
- [
- '123',
- '+@#$~^*{}',
- 'lorem ipsum',
- ' ',
- 123,
- null,
- [],
- {},
- function() {},
- null,
- undefined
- ].forEach(function(data) {
- amanda.validate(data, schema, function(error) {
- count += 1;
- test.ok(error);
- });
- });
-
- test.equal(count, 15);
- test.done();
-
-};
Please sign in to comment.
Something went wrong with that request. Please try again.