Browse Source

updated service name

pull/936/head
Stephen Hess 8 years ago
parent
commit
cd6b9d9ed6
  1. 2
      service/configurations/Language.js
  2. 4
      test/unit/service/configurations/Language.js

2
service/configurations/Language.js

@ -8,7 +8,7 @@ const ServiceConfiguration = require('pelias-microservice-wrapper').ServiceConfi
class Language extends ServiceConfiguration { class Language extends ServiceConfiguration {
constructor(o) { constructor(o) {
super('placeholder.language', o); super('language', o);
} }
getParameters(req, res) { getParameters(req, res) {

4
test/unit/service/configurations/Language.js

@ -3,7 +3,7 @@ module.exports.tests = {};
const Language = require('../../../../service/configurations/Language'); const Language = require('../../../../service/configurations/Language');
module.exports.tests.all = (test, common) => { module.exports.tests.all = (test, common) => {
test('getName should return \'placeholder.language\'', (t) => { test('getName should return \'language\'', (t) => {
const configBlob = { const configBlob = {
url: 'http://localhost:1234', url: 'http://localhost:1234',
timeout: 17, timeout: 17,
@ -12,7 +12,7 @@ module.exports.tests.all = (test, common) => {
const language = new Language(configBlob); const language = new Language(configBlob);
t.equals(language.getName(), 'placeholder.language'); t.equals(language.getName(), 'language');
t.equals(language.getBaseUrl(), 'http://localhost:1234/'); t.equals(language.getBaseUrl(), 'http://localhost:1234/');
t.equals(language.getTimeout(), 17); t.equals(language.getTimeout(), 17);
t.equals(language.getRetries(), 19); t.equals(language.getRetries(), 19);

Loading…
Cancel
Save