Skip to content

Commit 111475a

Browse files
committed
fixed failing test
added more info test site object
1 parent 59930de commit 111475a

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

.github/workflows/build.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ jobs:
5050
- name: Run tests and jacoco coverage report with Gradle
5151
uses: gradle/gradle-build-action@v2.4.2
5252
with:
53-
arguments: -PenableJacoco=true test
53+
arguments: -PenableJacoco=true check
5454

5555
- name: Run javascript unit tests
5656
run: node_modules/karma/bin/karma start karma.conf.js --single-run --browsers ChromeHeadless

grails-app/controllers/au/org/ala/ecodata/forms/PreviewController.groovy

+7-1
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,13 @@ class PreviewController {
157157
def sites = [[
158158
'siteId': 'abc',
159159
'projects': ['projectA'],
160-
'name': 'Test site'
160+
'name': 'Test site',
161+
extent: [
162+
geometry: [
163+
type: 'Point',
164+
coordinates: [ 153.0, -27.0 ]
165+
]
166+
]
161167
]]
162168
render sites as JSON, contentType: 'application/json'
163169
}

0 commit comments

Comments
 (0)