From a1d4810d55031ccb7f575b857c3654f70c487538 Mon Sep 17 00:00:00 2001 From: Nicolas Dupont Date: Wed, 12 Jun 2024 11:08:42 +0200 Subject: [PATCH] Improve wording Co-authored-by: Matti Schneider --- src/index.js | 2 +- src/services/collections.test.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/index.js b/src/index.js index 392d84e..a7757ad 100644 --- a/src/index.js +++ b/src/index.js @@ -27,7 +27,7 @@ const collections = await fetchCollections(config.get('@opentermsarchive/federat }); if (collections.length == 0) { - logger.error('Without valid collections declared, the process will exit as this API cannot serve any requests'); + logger.error('No valid collection declared, the process will exit as this API cannot fulfil any request'); process.exit(2); } diff --git a/src/services/collections.test.js b/src/services/collections.test.js index 8210bde..7a4f1c8 100644 --- a/src/services/collections.test.js +++ b/src/services/collections.test.js @@ -10,7 +10,7 @@ describe('Services: Collections', () => { const COLLECTION_1_OVERRIDEN = { id: COLLECTION_1.id, name: 'Override Collection 1', endpoint: 'http://domain2.example/endpoint' }; describe('fetchCollections', () => { - it('fetches collections from URLs and includes directly given collections', async () => { + it('fetches collections from URLs and includes directly defined collections', async () => { nock('http://domain1.example') .get('/collections.json') .reply(200, [ COLLECTION_1, COLLECTION_2 ]);