Permalink
Browse files

Removed the ‘unsignedInt’ format

  • Loading branch information...
Baggz committed Mar 12, 2012
1 parent 1845831 commit c74d0680cadedeb719e067f83688431e997cb16c
Showing with 0 additions and 59 deletions.
  1. +0 −59 tests/json/attributes/format/unsignedInt.js
@@ -1,59 +0,0 @@
-if (typeof module !== 'undefined' && module.exports) {
- var expect = require('expect.js');
- var amanda = require('../../../../dist/latest.js');
-}
-
-/**
- * Format
- * --------------------
- */
-suite('JSON/Attribute/format#unsignedInt', function() {
-
- var count = 0;
-
- /**
- * Schema
- */
- var schema = {
- format: 'unsignedInt'
- };
-
- /**
- * Validator
- */
- var Validator = amanda('json');
-
- test('should not return an error', function() {
- [
- 1,
- 2,
- 3,
- 4,
- 5,
- 6
- ].forEach(function(data) {
- Validator.validate(data, schema, function(error) {
- count += 1;
- expect(error).to.not.be.ok();
- });
- });
- });
-
- test('should return an error', function() {
- [
- -1212,
- -2112,
- -12.21
- ].forEach(function(data) {
- Validator.validate(data, schema, function(error) {
- count += 1;
- expect(error).to.be.ok();
- });
- });
- });
-
- test('should run 9 times', function() {
- expect(count).to.be.eql(9);
- });
-
-});

0 comments on commit c74d068

Please sign in to comment.