Skip to content
Browse files

Remove the obsolete ‘decimal’ test suite

  • Loading branch information...
1 parent 45f85a6 commit 4d9190282420459c6843fd6e33080423d05519db @Baggz committed Mar 7, 2012
Showing with 0 additions and 54 deletions.
  1. +0 −54 tests/validators/format/decimal.js
View
54 tests/validators/format/decimal.js
@@ -1,54 +0,0 @@
-// Load dependencies
-var amanda = require('../../../dist/latest.js');
-
-/**
- * Test ‘decimal’
- */
-exports['Test #1'] = function(test) {
-
- var count = 0;
-
- var schema = {
- required: true,
- format: 'decimal'
- };
-
- [
- 1,
- 10,
- 20,
- 30,
- 1.11,
- 1.23,
- 1.30,
- 230.36
- ].forEach(function(data) {
- amanda.validate(data, schema, function(error) {
- count += 1;
- test.equal(error, undefined);
- });
- });
-
- [
- 1.123981273,
- 19723.129319,
- '+@#$~^*{}',
- 'lorem ipsum',
- ' ',
- null,
- [],
- {},
- function() {},
- null,
- undefined
- ].forEach(function(data) {
- amanda.validate(data, schema, function(error) {
- count += 1;
- test.ok(error);
- });
- });
-
- test.equal(count, 19);
- test.done();
-
-};

0 comments on commit 4d91902

Please sign in to comment.
Something went wrong with that request. Please try again.