Skip to content

Commit

Permalink
Improve wording
Browse files Browse the repository at this point in the history
Co-authored-by: Matti Schneider <gh@mattischneider.fr>
  • Loading branch information
Ndpnt and MattiSG authored Jun 12, 2024
1 parent 6cebae9 commit a1d4810
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down
2 changes: 1 addition & 1 deletion src/services/collections.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 ]);
Expand Down

0 comments on commit a1d4810

Please sign in to comment.