From 637d7b4a77d0db0dae5f3c8cfd88d43e7aa103ec Mon Sep 17 00:00:00 2001 From: Gibran Parvez Date: Mon, 15 Jan 2018 15:48:37 -0500 Subject: [PATCH] Fail and success test --- test/unit/service/external.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/test/unit/service/external.js b/test/unit/service/external.js index c029e799..d47b61c1 100644 --- a/test/unit/service/external.js +++ b/test/unit/service/external.js @@ -34,7 +34,7 @@ module.exports.tests.functionality = (test, common) => { }); }); - /*test('error thrown', (t) => { + test('response received', (t) => { var service = proxyquire('../../../service/external', { 'logger': { get: (section) => { @@ -44,12 +44,12 @@ module.exports.tests.functionality = (test, common) => { }); service.geotrans('18TXM9963493438').then(function(response){ - - t.equal(response, { 'type': 'Feature', 'geometry': { 'type': 'Point', 'coordinates': [ -72.57553258519015, 42.367593344066776 ] }, 'properties': { 'name': '18TXM9963493438' } }, 'Geotrans conversion succeeds and properties are added'); + let res = { 'type': 'Feature', 'geometry': { 'type': 'Point', 'coordinates': [ -72.57553258519015, 42.367593344066776 ] }, 'properties': { 'name': '18TXM9963493438' } }; + t.equal(response.toString(), res.toString(), 'Geotrans conversion succeeds and properties are added'); t.end(); }); - });*/ + }); }; module.exports.all = (tape, common) => {