Skip to content
This repository
Browse code

Remove the obsolete ‘ip’ test suite

  • Loading branch information...
commit 39d4ab62b40505e726e7bb70397a92949f0c75d5 1 parent 9ae27ae
František Hába authored March 07, 2012

Showing 1 changed file with 0 additions and 38 deletions. Show diff stats Hide diff stats

  1. 38  tests/validators/format/ip.js
38  tests/validators/format/ip.js
... ...
@@ -1,38 +0,0 @@
1  
-// Load dependencies
2  
-var amanda = require('../../../dist/latest.js');
3  
-
4  
-/**
5  
- * Test #1
6  
- */
7  
-exports['Test #1'] = function(test) {
8  
-
9  
-  var count = 0;
10  
-
11  
-  var schema = {
12  
-    required: true,
13  
-    format: 'ip'
14  
-  };
15  
-
16  
-  [
17  
-    '2001:0db8:85a3:0000:0000:8a2e:0370:7334',
18  
-    '210.232.115.79',
19  
-    '18.239.245.96',
20  
-    '15.138.29.10',
21  
-    '182.166.124.240',
22  
-    '118.118.155.180',
23  
-    '80.200.1.109',
24  
-    '139.170.113.124',
25  
-    '85.13.30.193',
26  
-    '80.198.199.175',
27  
-    '111.162.166.83'
28  
-  ].forEach(function(data) {
29  
-    amanda.validate(data, schema, function(error) {
30  
-      count += 1;
31  
-      test.equal(error, undefined);
32  
-    });  
33  
-  });
34  
-
35  
-  test.equal(count, 11);
36  
-  test.done();
37  
-
38  
-};

0 notes on commit 39d4ab6

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