Permalink
Browse files

Remove the obsolete ‘test.'s’ file

  • Loading branch information...
1 parent a36e1fc commit 38db00ea4b763180596713fa5aac6fe371045d37 @Baggz committed Mar 7, 2012
Showing with 0 additions and 59 deletions.
  1. +0 −59 tests/test.js
View
@@ -1,59 +0,0 @@
-// Load dependencies
-var amanda = require('../dist/latest.js');
-
-/**
- * Test #1
- */
-exports['Test #1'] = function(test) {
-
- /**
- * AddValidator
- */
- amanda.addValidator('testValidator', function(property, propertyValue, validator, propertyValidators, callback) {
-
- console.log('testValidator...');
-
- if (!propertyValue || propertyValue.indexOf('a') !== -1) {
- return callback('Oops! This username - ' + propertyValue + ' - is taken.');
- } else {
- return callback();
- }
-
- });
-
- /**
- * UserSchema
- */
- var userSchema = {
- type: 'object',
- properties: {
- name: {
- required: true,
- type: 'string',
- minLength: 2,
- maxLength: 45
- },
- email: {
- required: true,
- type: 'string',
- format: 'email',
- testValidator: true
- },
- password: {
- required: true,
- type: 'string'
- }
- }
- };
-
- amanda.validate({
- email: '',
- name: 'aa',
- password: ''
- }, userSchema, function() {
- console.log(arguments);
- test.done();
- });
-
-
-};

0 comments on commit 38db00e

Please sign in to comment.