Permalink
Browse files

Removed the ‘int’ format

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

0 comments on commit 1845831

Please sign in to comment.