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(); });