423 add issues table component to issues details page part 2 #63
Annotations
7 errors
test/unit/middleware/issueDetails.middleware.test.js > issueDetails.middleware.js > prepareIssueDetailsTemplateParams > should set templateParams on the request object:
src/middleware/issueDetails.middleware.js#L116
TypeError: Cannot read properties of undefined (reading 'value')
❯ src/middleware/issueDetails.middleware.js:116:39
❯ Module.prepareIssueDetailsTemplateParams src/middleware/issueDetails.middleware.js:108:32
❯ test/unit/middleware/issueDetails.middleware.test.js:94:7
|
test/unit/middleware/issueDetails.middleware.test.js > issueDetails.middleware.js > prepareIssueDetailsTemplateParams > should set organisation, dataset, and errorSummary on templateParams:
src/middleware/issueDetails.middleware.js#L116
TypeError: Cannot read properties of undefined (reading 'value')
❯ src/middleware/issueDetails.middleware.js:116:39
❯ Module.prepareIssueDetailsTemplateParams src/middleware/issueDetails.middleware.js:108:32
❯ test/unit/middleware/issueDetails.middleware.test.js:99:7
|
test/unit/middleware/issueDetails.middleware.test.js > issueDetails.middleware.js > prepareIssueDetailsTemplateParams > should set entry on templateParams with correct fields:
src/middleware/issueDetails.middleware.js#L116
TypeError: Cannot read properties of undefined (reading 'value')
❯ src/middleware/issueDetails.middleware.js:116:39
❯ Module.prepareIssueDetailsTemplateParams src/middleware/issueDetails.middleware.js:108:32
❯ test/unit/middleware/issueDetails.middleware.test.js:106:7
|
test/unit/middleware/issueDetails.middleware.test.js > issueDetails.middleware.js > prepareIssueDetailsTemplateParams > should set pagination on templateParams with correct items:
src/middleware/issueDetails.middleware.js#L116
TypeError: Cannot read properties of undefined (reading 'value')
❯ src/middleware/issueDetails.middleware.js:116:39
❯ Module.prepareIssueDetailsTemplateParams src/middleware/issueDetails.middleware.js:108:32
❯ test/unit/middleware/issueDetails.middleware.test.js:129:7
|
test/unit/middleware/issueDetails.middleware.test.js > issueDetails.middleware.js > prepareIssueDetailsTemplateParams > should call next function:
src/middleware/issueDetails.middleware.js#L116
TypeError: Cannot read properties of undefined (reading 'value')
❯ src/middleware/issueDetails.middleware.js:116:39
❯ Module.prepareIssueDetailsTemplateParams src/middleware/issueDetails.middleware.js:108:32
❯ test/unit/middleware/issueDetails.middleware.test.js:135:7
|
test/unit/middleware/issueTable.middleware.test.js > issueTable.middleware.js > prepareIssueTableTemplateParams > should correctly set the template params:
test/unit/middleware/issueTable.middleware.test.js#L143
AssertionError: expected { organisation: { …(3) }, …(6) } to deeply equal { organisation: { …(3) }, …(5) }
- Expected
+ Received
Object {
"dataset": Object {
"collection": "velit",
"dataset": "id est cillum",
"name": "ullamco reprehenderit",
},
"errorSummary": Object {
"items": Array [
Object {
"href": "proident Duis id",
"html": "ut",
},
Object {
"href": "ut enim",
"html": "in magna",
},
],
},
+ "geometries": undefined,
"issueType": "ex aute",
"organisation": Object {
"entity": -61247162.38118708,
"name": "sint",
"organisation": "laboris nostrud occaecat",
},
"pagination": Object {
"items": Array [
Object {
"href": "/pagenation-link-1",
"number": 1,
},
Object {
"href": "/pagenation-link-2",
"number": 2,
},
],
},
"tableParams": Object {
"columns": Array [
"start-date",
"reference",
],
"fields": Array [
"start-date",
"reference",
],
"rows": Array [
Object {
"columns": Object {
"reference": Object {
"error": undefined,
- "html": "<a href=\"/organisations/ut/officia ad/ex aute/ut irure/entry/1\">reference</a>",
+ "html": "<a href=\"/organisations/ut/officia%20ad/ex%20aute/ut%20irure/entry/1\">reference</a>",
},
"start-date": Object {
"error": Object {
"message": "invalid",
"value": "invalid-start-date",
},
"value": "start-date",
},
},
},
],
},
}
❯ test/unit/middleware/issueTable.middleware.test.js:143:34
|
test
Process completed with exit code 1.
|