[DONT MERGE] Multi endpoint test bench #130
Annotations
10 errors
Run test:
test/unit/datasetTaskListPage.test.js#L42
AssertionError: expected 2 to deeply equal 1
- Expected
+ Received
- 1
+ 2
❯ test/unit/datasetTaskListPage.test.js:42:34
|
Run test:
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
|
Run test:
test/unit/lpaOverviewPage.test.js#L94
Error: Unknown dataset status: eiusmod
❯ test/unit/lpaOverviewPage.test.js:94:15
|
Run test:
test/unit/lpaOverviewPage.test.js#L109
AssertionError: expected '/organisations/aute nulla/consectetur…' to deeply equal '/organisations/aute nulla/undefined/o…'
Expected: "/organisations/aute nulla/undefined/overview"
Received: "/organisations/aute nulla/consectetur nisi/overview"
❯ test/unit/lpaOverviewPage.test.js:109:30
|
Run test:
test/unit/lpaOverviewPage.test.js#L94
Error: Unknown dataset status: occaecat ex
❯ test/unit/lpaOverviewPage.test.js:94:15
|
Run test:
test/unit/lpaOverviewPage.test.js#L109
AssertionError: expected '/organisations/aute nulla/sint do ut/…' to deeply equal '/organisations/aute nulla/undefined/o…'
Expected: "/organisations/aute nulla/undefined/overview"
Received: "/organisations/aute nulla/sint do ut/overview"
❯ test/unit/lpaOverviewPage.test.js:109:30
|
Run test:
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
|
Run test:
src/middleware/datasetTaskList.middleware.js#L52
TypeError: Cannot read properties of undefined (reading 'reduce')
❯ Module.prepareDatasetTaskListTemplateParams src/middleware/datasetTaskList.middleware.js:52:26
❯ test/unit/middleware/datasetTaskList.middleware.test.js:44:7
|
Run test:
test/unit/middleware/issueDetails.middleware.test.js#L113
AssertionError: expected { organisation: { …(2) }, …(8) } to deeply equal { organisation: { …(2) }, …(8) }
- Expected
+ Received
Object {
"dataset": Object {
"collection": "mock-collection",
"dataset": "mock-dataset",
"name": "mock dataset",
},
"entry": Object {
"fields": Array [
Object {
"classes": "dl-summary-card-list__row--error",
"key": Object {
"text": "start-date",
},
"value": Object {
"html": "<p class=\"govuk-error-message\">mock message</p>02-02-2022",
},
},
],
"geometries": Array [],
"title": "entry: 1",
},
"errorHeading": "mockMessageFor: 0",
"issueEntitiesCount": 1,
"issueItems": Array [
Object {
- "href": "/organisations/test-lpa/test-dataset/test-issue-type/test-issue-field/1",
+ "href": "/organisations/test-lpa/test-dataset/undefined/test-issue-type/test-issue-field/1",
"html": "mock task message 1 in record 1",
},
],
"issueType": "test-issue-type",
"organisation": Object {
"name": "mock lpa",
"organisation": "ORG",
},
"pageNumber": 1,
"pagination": Object {
"items": Array [
Object {
"current": true,
- "href": "/organisations/test-lpa/test-dataset/test-issue-type/test-issue-field/1",
+ "href": "/organisations/test-lpa/test-dataset/undefined/test-issue-type/test-issue-field/1",
"number": 1,
"type": "number",
},
],
},
}
❯ test/unit/middleware/issueDetails.middleware.test.js:113:34
|
Run test:
test/unit/middleware/issueDetails.middleware.test.js#L222
AssertionError: expected { organisation: { …(2) }, …(8) } to deeply equal { organisation: { …(2) }, …(8) }
- Expected
+ Received
Object {
"dataset": Object {
"collection": "mock-collection",
"dataset": "mock-dataset",
"name": "mock dataset",
},
"entry": Object {
"fields": Array [
Object {
"classes": "dl-summary-card-list__row--error",
"key": Object {
"text": "start-date",
},
"value": Object {
"html": "<p class=\"govuk-error-message\">mock message</p>02-02-2022",
},
},
Object {
"classes": "",
"key": Object {
"text": "geometry",
},
"value": Object {
"html": "POINT(0 0)",
},
},
],
"geometries": Array [
"POINT(0 0)",
],
"title": "entry: 1",
},
"errorHeading": "mockMessageFor: 0",
"issueEntitiesCount": 1,
"issueItems": Array [
Object {
- "href": "/organisations/test-lpa/test-dataset/test-issue-type/test-issue-field/1",
+ "href": "/organisations/test-lpa/test-dataset/undefined/test-issue-type/test-issue-field/1",
"html": "mock task message 1 in record 1",
},
],
"issueType": "test-issue-type",
"organisation": Object {
"name": "mock lpa",
"organisation": "ORG",
},
"pageNumber": 1,
"pagination": Object {
"items": Array [
Object {
"current": true,
- "href": "/organisations/test-lpa/test-dataset/test-issue-type/test-issue-field/1",
+ "href": "/organisations/test-lpa/test-dataset/undefined/test-issue-type/test-issue-field/1",
"number": 1,
"type": "number",
},
],
},
}
❯ test/unit/middleware/issueDetails.middleware.test.js:222:34
|
Loading