var suich = require('..'),
	assert = require('assert'),
	Q = require('q');

describe('safe url input checker library for node.js', function() {

	describe('getIPAddresses() method', function() {
		it('should get IP addresses', function(done) {
			suich.getIPAddresses('w3.org', function(err, res) {
				assert.equal(res, "128.30.52.45");
				done();
			});
		});
		it('should get IP addresses', function(done) {
			suich.getIPAddresses('localhost', function(err, res) {
				assert.equal(res, "127.0.0.1");
				done();
			});
		});
		it('should not get IP addresses', function(done) {
			suich.getIPAddresses('foofoofoofoofoo.com', function(err, res) {
				assert.ifError(res);
				done();
			});
		});
	});


	describe('isHostBlacklisted() method', function() {
		it('should return true', function() {
			suich.isHostBlacklisted('google.com', ['google.com', 'pinpin.com'], function(err, res) {
				assert.equal(res, true);
			});
		});
	});
	
});
@@ -121,16 +121,17 @@
  node.js
+ 
 ', funct
@@ -191,24 +191,27 @@
 n() %7B%0A%09%09it('
+#1 
 should get I
@@ -362,24 +362,27 @@
 %09%09%7D);%0A%09%09it('
+#2 
 should get I
@@ -533,24 +533,27 @@
 %09%09%7D);%0A%09%09it('
+#3 
 should not g
@@ -621,22 +621,16 @@
 oofoofoo
-foofoo
 .com', f
@@ -765,16 +765,19 @@
 %7B%0A%09%09it('
+#1 
 should r
@@ -863,76 +863,805 @@
 ', '
-pinpin.com'%5D, function(err, res) %7B%0A%09%09%09%09assert.equal(res, true);%0A%09%09%09%7D
+w3.org'%5D, function(err, res) %7B%0A%09%09%09%09assert.equal(res, true);%0A%09%09%09%7D);%0A%09%09%7D);%0A%09%09it('#2 should return false', function() %7B%0A%09%09%09suich.isHostBlacklisted('foofoofoo.com', %5B'google.com', 'w3.org'%5D, function(err, res) %7B%0A%09%09%09%09assert.equal(res, false);%0A%09%09%09%7D);%0A%09%09%7D);%0A%09%09it('#3 should return false', function() %7B%0A%09%09%09suich.isHostBlacklisted('foofoofoo.com', %5B%5D, function(err, res) %7B%0A%09%09%09%09assert.equal(res, false);%0A%09%09%09%7D);%0A%09%09%7D);%0A%09%09it('#4 should return true', function() %7B%0A%09%09%09assert.equal(suich.isHostBlacklisted('google.com', %5B'google.com', 'w3.org'%5D), true);%0A%09%09%7D);%0A%09%09it('#5 should return false', function() %7B%0A%09%09%09assert.equal(suich.isHostBlacklisted('foofoofoo.com', %5B'google.com', 'w3.org'%5D), false);%0A%09%09%7D);%0A%09%09it('#6 should return false', function() %7B%0A%09%09%09assert.equal(suich.isHostBlacklisted('foofoofoo.com', %5B%5D), false
 );%0A%09
@@ -1670,13 +1670,12 @@
 );%0A%09%7D);%0A
-%09
 %0A%7D);

add isHostBlacklisted tests (mocha)