From 8b8ee72442f7f7738722318f52fd2d8cb16f3d35 Mon Sep 17 00:00:00 2001 From: Sam Levan Date: Thu, 19 Mar 2015 09:48:35 -0700 Subject: [PATCH 1/4] fix typo in module exports --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index 27a5796..01f220a 100644 --- a/index.js +++ b/index.js @@ -20,5 +20,5 @@ function isDisposable(email) { module.exports = { isFree: isFree, - isDisposible: isDisposable + isDisposable: isDisposable }; From 7a7f4e71c8994155440b3a66fc0960f4fa94404b Mon Sep 17 00:00:00 2001 From: Sam Levan Date: Thu, 19 Mar 2015 09:48:54 -0700 Subject: [PATCH 2/4] remove console log in isFree function --- index.js | 1 - 1 file changed, 1 deletion(-) diff --git a/index.js b/index.js index 01f220a..23cb6c8 100644 --- a/index.js +++ b/index.js @@ -8,7 +8,6 @@ function isFree(email) { if (typeof email !== 'string') throw new TypeError('email must be a string'); console.log(email); var domain = tldjs.getDomain(email.split('@').pop()); - console.log(domain, free.indexOf(domain)); return free.indexOf(domain) !== -1; } From 61273634f916a4cc56b07a63e3bf6f9387663d5a Mon Sep 17 00:00:00 2001 From: Sam Levan Date: Thu, 19 Mar 2015 09:54:13 -0700 Subject: [PATCH 3/4] update tests --- test/test.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/test/test.js b/test/test.js index d52c590..83efd41 100644 --- a/test/test.js +++ b/test/test.js @@ -21,12 +21,12 @@ test('mailinater.com should be free', function(t) { t.equal(freemail.isFree('smith@mailinater.com'), true); }); -test('mailinater.com should be disposible', function(t) { +test('mailinater.com should be disposable', function(t) { t.plan(1); - t.equal(freemail.isDisposible('smith@mailinater.com'), true); + t.equal(freemail.isDisposable('smith@mailinater.com'), true); }); -test('gmail.com should not be disposible', function(t) { +test('gmail.com should not be disposable', function(t) { t.plan(1); - t.equal(freemail.isDisposible('smith@gmail.com'), false); + t.equal(freemail.isDisposable('smith@gmail.com'), false); }); From f828fb5a66496a8842aa98f0afc1ad02f44adbf2 Mon Sep 17 00:00:00 2001 From: Sam Levan Date: Thu, 19 Mar 2015 10:46:34 -0700 Subject: [PATCH 4/4] remove console log of email address --- index.js | 1 - 1 file changed, 1 deletion(-) diff --git a/index.js b/index.js index 23cb6c8..f5cc7f6 100644 --- a/index.js +++ b/index.js @@ -6,7 +6,6 @@ var free = fs.readFileSync(__dirname + '/data/free.txt').toString().split('\n'). function isFree(email) { if (typeof email !== 'string') throw new TypeError('email must be a string'); - console.log(email); var domain = tldjs.getDomain(email.split('@').pop()); return free.indexOf(domain) !== -1; }