Mercurial > gemma
changeset 696:1db1ae344087
refac: test adjusted. testdata as JSON string
author | Thomas Junk <thomas.junk@intevation.de> |
---|---|
date | Thu, 20 Sep 2018 15:54:34 +0200 |
parents | a1c62adc9bcb |
children | 3da0ab06d5a0 |
files | client/tests/unit/geo/geo.spec.js |
diffstat | 1 files changed, 26 insertions(+), 26 deletions(-) [+] |
line wrap: on
line diff
--- a/client/tests/unit/geo/geo.spec.js Thu Sep 20 15:13:04 2018 +0200 +++ b/client/tests/unit/geo/geo.spec.js Thu Sep 20 15:54:34 2018 +0200 @@ -1,31 +1,31 @@ import { prepareProfile } from "../../../src/application/lib/geo"; -const geoJSON = { - type: "Feature", - geometry: { - type: "MultiLineString", - coordinates: [ - [ - [17.216391563415527, 48.0245195664277, 123], - [17.216777801513672, 48.024720482272315, 124] - ], - [ - [17.218494415283203, 48.02540933065123, 125], - [17.219438552856445, 48.02586855778941, 126], - [17.220726013183594, 48.02647128719908, 127], - [17.221627235412598, 48.026987906797494, 128], - [17.222957611083984, 48.02759062311748, 129], - [17.223901748657227, 48.0280785311666, 130], - [17.224159240722656, 48.02819333238926, 131] - ], - [ - [17.225961685180664, 48.02891083423718, 132], - [17.227892875671383, 48.02997271864036, 133] - ] - ] - }, - properties: {} -}; +const geoJSON = JSON.parse(`{ + "type": "Feature", + "geometry": { + "type": "MultiLineString", + "coordinates": [ + [ + [17.216391563415527, 48.0245195664277, 123], + [17.216777801513672, 48.024720482272315, 124] + ], + [ + [17.218494415283203, 48.02540933065123, 125], + [17.219438552856445, 48.02586855778941, 126], + [17.220726013183594, 48.02647128719908, 127], + [17.221627235412598, 48.026987906797494, 128], + [17.222957611083984, 48.02759062311748, 129], + [17.223901748657227, 48.0280785311666, 130], + [17.224159240722656, 48.02819333238926, 131] + ], + [ + [17.225961685180664, 48.02891083423718, 132], + [17.227892875671383, 48.02997271864036, 133] + ] + ] + }, + "properties": {} +}`); test("prepare diagram", () => { const coordinates = geoJSON.geometry.coordinates;