Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Remove the obsolete ‘alphanumeric’ test suite

  • Loading branch information...
commit c33270dbd210f221e5ace3bdeef69a2d200fa646 1 parent 0cd0f05
@Baggz authored
Showing with 0 additions and 52 deletions.
  1. +0 −52 tests/validators/format/alphanumeric.js
View
52 tests/validators/format/alphanumeric.js
@@ -1,52 +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: 'alphanumeric'
- };
-
- [
- 'abc123',
- '123abc',
- 'a1b2c3',
- 'abc',
- 'ABC',
- 'Abc',
- '123',
- 123
- ].forEach(function(data) {
- amanda.validate(data, schema, function(error) {
- count += 1;
- test.equal(error, undefined);
- });
- });
-
- [
- '+@#$~^*{}',
- 'lorem ipsum',
- ' ',
- null,
- [],
- {},
- function() {},
- null,
- undefined
- ].forEach(function(data) {
- amanda.validate(data, schema, function(error) {
- count += 1;
- test.ok(error);
- });
- });
-
- test.equal(count, 17);
- test.done();
-
-};
Please sign in to comment.
Something went wrong with that request. Please try again.