Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Remove the obsolete ‘date’ test suite

  • Loading branch information...
commit 45f85a63559fa5368e3e1c81f37002e37f4db4dc 1 parent c33270d
@Baggz authored
Showing with 0 additions and 50 deletions.
  1. +0 −50 tests/validators/format/date.js
View
50 tests/validators/format/date.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: 'date'
- };
-
- [
- new Date()
- ].forEach(function(data) {
- amanda.validate(data, schema, function(error) {
- count += 1;
- test.equal(error, undefined);
- });
- });
-
- [
- 0,
- 1,
- 2,
- '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.