Skip to content

Fixing the addition of multiple slashes to canonical URLs#170

Merged
grahamegrieve merged 3 commits intomainfrom
error/adding-multiple-slashes-to-canonical-URLs
Mar 14, 2026
Merged

Fixing the addition of multiple slashes to canonical URLs#170
grahamegrieve merged 3 commits intomainfrom
error/adding-multiple-slashes-to-canonical-URLs

Conversation

@italomacedo
Copy link
Collaborator

@italomacedo italomacedo commented Mar 14, 2026

This pull request adds new unit tests for multiple modules related to OCL integration, background job queue, cache utilities, and concept map providers. It also removes two existing integration test files that used network mocking, likely to streamline or replace them with more focused unit tests. The main focus is on improving test coverage for core utilities and providers, and cleaning up older, more complex integration tests.

New unit tests added:

OCL Background Job Queue

  • Added a new test suite for OCLBackgroundJobQueue covering job enqueuing, duplicate prevention, job size normalization, and heartbeat logging.

Cache Utilities

  • Added tests for formatCacheAgeMinutes in cache-utils, with placeholders for additional cache utility tests.

Concept Map Provider

  • Added a basic test suite for OCLConceptMapProvider, including instantiation, ID assignment, and placeholders for further method and error flow tests.

Removed integration tests:

Integration Tests Using Network Mocking

  • Removed ocl-cm.test.js, which contained integration tests for concept map fetching, searching, translation, and caching using nock.
  • Removed ocl-background-resilience.test.js, which tested background job queue resilience to various OCL API failures using nock.

…sure cacheKey and fingerprint are used for reliable retrieval and integrity.
Copy link
Contributor

@grahamegrieve grahamegrieve left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok

@grahamegrieve grahamegrieve merged commit 1b1e6bd into main Mar 14, 2026
6 of 7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants