Skip to content

600 ensure issues are gathered from all active resources #128

600 ensure issues are gathered from all active resources

600 ensure issues are gathered from all active resources #128

Triggered via pull request October 30, 2024 14:15
Status Failure
Total duration 1m 17s
Artifacts
Fit to window
Zoom out
Zoom in

Annotations

10 errors
test/unit/lpaOverviewPage.test.js > LPA Overview Page (seed: 1730297767726) > The correct number of dataset cards are rendered with the correct titles: test/unit/lpaOverviewPage.test.js#L49
AssertionError: expected '\n \n \n …' to include undefined ❯ test/unit/lpaOverviewPage.test.js:49:77 ❯ test/unit/lpaOverviewPage.test.js:48:21
test/unit/lpaOverviewPage.test.js > LPA Overview Page (seed: 1730297767726) > Renders the correct link on each dataset card for dataset='undefined': test/unit/lpaOverviewPage.test.js#L109
AssertionError: expected '/organisations/laborum Ut veniam/in/o…' to deeply equal '/organisations/laborum Ut veniam/unde…' Expected: "/organisations/laborum Ut veniam/undefined/overview" Received: "/organisations/laborum Ut veniam/in/overview" ❯ test/unit/lpaOverviewPage.test.js:109:30
test/unit/lpaOverviewPage.test.js > LPA Overview Page (seed: 1730297767726) > Renders the correct link on each dataset card for dataset='undefined': test/unit/lpaOverviewPage.test.js#L109
AssertionError: expected '/organisations/laborum Ut veniam/Ut d…' to deeply equal '/organisations/laborum Ut veniam/unde…' Expected: "/organisations/laborum Ut veniam/undefined/overview" Received: "/organisations/laborum Ut veniam/Ut deserunt/overview" ❯ test/unit/lpaOverviewPage.test.js:109:30
test/unit/middleware/datasetOverview.middleware.test.js > Dataset Overview Middleware > prepareDatasetOverviewTemplateParams > should prepare template params for dataset overview: test/unit/middleware/datasetOverview.middleware.test.js#L56
AssertionError: expected { …(4) } to deeply equal { …(4) } - Expected + Received Object { "dataset": Object { "collection": "mock-collection", "dataset": "mock-dataset", "name": "mock dataset", }, "issueCount": 1, "organisation": Object { "name": "mock-org", }, "stats": Object { "endpoints": Array [ Object { "documentation_url": "doc-url1", "endpoint": "endpoint1", "error": undefined, "lastAccessed": "LA1", "lastUpdated": "LU1", "name": "Data Url 0", }, Object { "documentation_url": "doc-url2", "endpoint": "endpoint2", - "error": Object { - "code": 404, - "exception": "exception", - }, + "error": "There was a exception error accessing the endpoint", "lastAccessed": "LA2", "lastUpdated": "LU2", "name": "Data Url 1", }, ], "numberOfExpectedFields": 2, "numberOfFieldsMatched": 1, "numberOfFieldsSupplied": 1, "numberOfRecords": 10, }, } ❯ test/unit/middleware/datasetOverview.middleware.test.js:56:45
test/unit/middleware/overview.middleware.test.js > overview.middleware > prepareOverviewTemplateParams > should render the overview page: src/middleware/overview.middleware.js#L75
TypeError: Cannot read properties of undefined (reading 'filter') ❯ Module.prepareOverviewTemplateParams src/middleware/overview.middleware.js:75:37 ❯ test/unit/middleware/overview.middleware.test.js:30:7
test/unit/middleware/overview.middleware.test.js > overview.middleware > getOverview > should call render with the correct template and params: test/unit/middleware/overview.middleware.test.js#L126
AssertionError: expected "spy" to be called 1 times, but got 0 times ❯ test/unit/middleware/overview.middleware.test.js:126:26
test/unit/views/organisations/dataset-overview.test.js: src/utils/custom-renderer.js#L43
ValiError: Invalid type: Expected string but received Object ❯ Module.parse node_modules/valibot/dist/index.js:5219:11 ❯ Module.render src/utils/custom-renderer.js:43:18 ❯ Object.render src/serverSetup/nunjucks.js:17:27 ❯ test/unit/views/organisations/dataset-overview.test.js:49:41 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { issues: [ { kind: 'schema', type: 'string', input: { code: 404, exception: '' }, expected: 'string', received: 'Object', message: 'Invalid type: Expected string but received Object', requirement: undefined, path: [ { type: 'object', origin: 'value', input: { organisation: { name: 'Mock org', organisation: 'mock-org' }, dataset: { dataset: 'world-heritage-site-buffer-zone', name: 'World heritage site buffer zone', collection: 'world-heritage-site' }, stats: { numberOfRecords: 10, numberOfFieldsSupplied: 5, numberOfFieldsMatched: 6, numberOfExpectedFields: 10, endpoints: [ { name: 'endpoint 1', endpoint: 'http://endpoint1.co.uk', documentation_url: 'http://endpoint1-docs.co.uk', lastAccessed: '2024-09-09', lastUpdated: '2024-09-09' }, { name: 'endpoint 2', endpoint: 'http://endpoint2.co.uk', lastAccessed: '2024-19-19', lastUpdated: '2024-19-19', error: { code: 404, exception: '' } } ] } }, key: 'stats', value: { numberOfRecords: 10, numberOfFieldsSupplied: 5, numberOfFieldsMatched: 6, numberOfExpectedFields: 10, endpoints: [ { name: 'endpoint 1', endpoint: 'http://endpoint1.co.uk', documentation_url: 'http://endpoint1-docs.co.uk', lastAccessed: '2024-09-09', lastUpdated: '2024-09-09' }, { name: 'endpoint 2', endpoint: 'http://endpoint2.co.uk', lastAccessed: '2024-19-19', lastUpdated: '2024-19-19', error: { code: 404, exception: '' } } ] } }, { type: 'object', origin: 'value', input: { numberOfRecords: 10, numberOfFieldsSupplied: 5, numberOfFieldsMatched: 6, numberOfExpectedFields: 10, endpoints: [ { name: 'endpoint 1', endpoint: 'http://endpoint1.co.uk', documentation_url: 'http://endpoint1-docs.co.uk', lastAccessed: '2024-09-09', lastUpdated: '2024-09-09' }, { name: 'endpoint 2', endpoint: 'http://endpoint2.co.uk', lastAccessed: '2024-19-19', lastUpdated: '2024-19-19', error: { code: 404, exception: '' } } ] }, key: 'endpoints', value: [ { name: 'endpoint 1', endpoint: 'http://endpoint1.co.uk', documentation_url: 'http://endpoint1-docs.co.uk', lastAccessed: '2024-09-09', lastUpdated: '2024-09-09' }, { name: 'endpoint 2', endpoint: 'http://endpoint2.co.uk', lastAccessed: '2024-19-19', lastUpdated: '2024-19-19', error: { code: 404, exception: '' } } ] }, { type: 'array', origin: 'value', input: [ { name: 'endpoint 1', endpoint: 'http://endpoint1.co.uk', documentation_url: 'http://endpoint1-docs.co.uk', lastAccessed: '2024-09-09', lastUpdated: '2024-09-09' }, { name: 'endpoint 2', endpoint: 'http://endpoint2.co.uk', lastAccessed: '2024-19-19', lastUpdated: '2024-19-19', error: { code: 404, exception: '' } } ], key: 1, value: { name: 'endpoint 2', endpoint: 'http://endpoint2.co.uk', lastAccessed: '2024-19-19', lastUpdated: '2024-19-19', error: { code: 404, exception: '' } } }, { type: 'object', origin: 'value', input: { name: 'endpoint 2', endpoint: 'http://endpoint2.co.uk', lastAccessed: '2024-19-19', lastUpdated: '2024-19-19', error: { code: 404, exception: '' } }, key: 'error', value: { code: 404, exception: '' } } ], issues: undefined, lang: undefined, abortEarly: undefined, abortPipeEarly: undefined } ] }
test
Process completed with exit code 1.