Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Remove the obsolete ‘uniqueItems’ test suite

  • Loading branch information...
commit 273dcf45a930535c316ed24c6fbd5ff4d95d6be0 1 parent bd41e0c
@Baggz authored
Showing with 0 additions and 47 deletions.
  1. +0 −47 tests/validators/uniqueItems.js
View
47 tests/validators/uniqueItems.js
@@ -1,47 +0,0 @@
-// Load dependencies
-var amanda = require('../../dist/latest.js');
-
-/**
- * Test #1
- */
-exports['Test #1'] = function(test) {
-
- var count = 0;
-
- var schema = {
- required: true,
- type: 'array',
- uniqueItems: true,
- items: {
- type: 'string'
- }
- };
-
- [
- ['a', 'a', 'a'],
- ['a', 'a', 'b'],
- ['a', 'b', 'a'],
- ['a', 'c', 'c'],
- ['a', 'c', 'a', 'c']
- ].forEach(function(input) {
- amanda.validate(input, schema, function(error) {
- count += 1;
- test.ok(error);
- });
- });
-
- amanda.validate([], schema, function(error) {
- count += 1;
- test.equal(error, undefined);
- });
-
- amanda.validate(['a', 'b', 'c'], schema, function(error) {
- count += 1;
- test.equal(error, undefined);
- });
-
-
- test.equal(count, 7);
- test.done();
-
-};
Please sign in to comment.
Something went wrong with that request. Please try again.