From 03667b07118bedc163f7f7bc5609b7013f1cba2f Mon Sep 17 00:00:00 2001 From: Stephen Hess Date: Tue, 2 May 2017 14:51:22 -0400 Subject: [PATCH] fixed error message --- service/http_json.js | 2 +- test/unit/service/http_json.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/service/http_json.js b/service/http_json.js index 1fe0a984..67b0252f 100644 --- a/service/http_json.js +++ b/service/http_json.js @@ -22,7 +22,7 @@ function synthesizeUrl(serviceConfig, req) { module.exports = function setup(serviceConfig) { if (!(serviceConfig instanceof ServiceConfiguration)) { - throw Error('serviceConfig be an instance of ServiceConfiguration'); + throw Error('serviceConfig should be an instance of ServiceConfiguration'); } if (_.isEmpty(serviceConfig.getBaseUrl())) { diff --git a/test/unit/service/http_json.js b/test/unit/service/http_json.js index 7d14f7ae..7bb1d7a9 100644 --- a/test/unit/service/http_json.js +++ b/test/unit/service/http_json.js @@ -25,7 +25,7 @@ module.exports.tests.conforms_to = (test, common) => { test('non-ServiceConfiguration instance should throw error', (t) => { const serviceConfig = 'not an instance of serviceConfiguration'; - t.throws(setup.bind(null, serviceConfig), /serviceConfig be an instance of ServiceConfiguration/); + t.throws(setup.bind(null, serviceConfig), /serviceConfig should be an instance of ServiceConfiguration/); t.end(); });