Skip to content

Commit

Permalink
fixed tests
Browse files Browse the repository at this point in the history
  • Loading branch information
GeorgeGoodall committed Oct 15, 2024
1 parent 189a0df commit 31842bd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions test/unit/issueDetailsPage.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ describe(`issueDetails.html(seed: ${seed})`, () => {
errorSummary: params.errorSummary,
entry: {
...params.entry,
geometries: ['POINT(0 0)']
geometries: 'POINT(0 0)'
},
issueType: params.issueType,
issueField: params.issueField
Expand All @@ -206,7 +206,7 @@ describe(`issueDetails.html(seed: ${seed})`, () => {
errorSummary: params.errorSummary,
entry: {
...params.entry,
geometries: []
geometries: ''
},
issueType: params.issueType,
issueField: params.issueField
Expand Down
4 changes: 2 additions & 2 deletions test/unit/middleware/issueDetails.middleware.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ describe('issueDetails.middleware.js', () => {
expect(req.templateParams.entry).toBeDefined()
expect(req.templateParams.entry.title).toBe('entry: entry-1')
expect(req.templateParams.entry.fields).toHaveLength(5)
expect(req.templateParams.entry.geometries).toEqual(['geom-1'])
expect(req.templateParams.entry.geometries).toEqual('geom-1')
expect(req.templateParams.entry.fields[0].key.text).toBe('reference')
expect(req.templateParams.entry.fields[0].value.html).toBe('entry-1')
expect(req.templateParams.entry.fields[0].classes).toBe('')
Expand Down Expand Up @@ -166,7 +166,7 @@ describe('issueDetails.middleware.js', () => {
}
}
],
geometries: ['POINT(0 0)']
geometries: 'POINT(0 0)'
},
issueType: 'test-issue-type',
issueField: 'test-issue-field',
Expand Down

0 comments on commit 31842bd

Please sign in to comment.