From 111475a960cdab6c393f8bb081f30b4e565f66f1 Mon Sep 17 00:00:00 2001 From: temi Date: Wed, 27 Nov 2024 19:15:03 +1100 Subject: [PATCH] fixed failing test added more info test site object --- .github/workflows/build.yml | 2 +- .../au/org/ala/ecodata/forms/PreviewController.groovy | 8 +++++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 28f9460..4b09d79 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -50,7 +50,7 @@ jobs: - name: Run tests and jacoco coverage report with Gradle uses: gradle/gradle-build-action@v2.4.2 with: - arguments: -PenableJacoco=true test + arguments: -PenableJacoco=true check - name: Run javascript unit tests run: node_modules/karma/bin/karma start karma.conf.js --single-run --browsers ChromeHeadless diff --git a/grails-app/controllers/au/org/ala/ecodata/forms/PreviewController.groovy b/grails-app/controllers/au/org/ala/ecodata/forms/PreviewController.groovy index a98766b..25bd928 100644 --- a/grails-app/controllers/au/org/ala/ecodata/forms/PreviewController.groovy +++ b/grails-app/controllers/au/org/ala/ecodata/forms/PreviewController.groovy @@ -157,7 +157,13 @@ class PreviewController { def sites = [[ 'siteId': 'abc', 'projects': ['projectA'], - 'name': 'Test site' + 'name': 'Test site', + extent: [ + geometry: [ + type: 'Point', + coordinates: [ 153.0, -27.0 ] + ] + ] ]] render sites as JSON, contentType: 'application/json' }