add upload
Sonarqube Scanner / Build and analyze (push) Failing after 1m4s

This commit is contained in:
Florian Zumpe
2026-09-27 18:11:08 +02:00
parent becd48b487
commit d2f31e39e8
5 changed files with 197 additions and 14 deletions
+9 -1
View File
@@ -325,7 +325,13 @@ test('local route package stores GPX and JSON separately and reconstructs an app
const saved = api.save({
id: routeId,
gpx: sampleGpx,
route: { id: routeId, name: 'Neue Route', description: 'Lokal gespeichert' },
route: {
id: routeId,
name: 'Neue Route',
description: 'Lokal gespeichert',
serverRouteId: 42,
uploadedAt: '2026-09-27T18:00:00.000Z'
},
pois: [
{
id: 101,
@@ -363,6 +369,8 @@ test('local route package stores GPX and JSON separately and reconstructs an app
assert.match(gpx, /<wegwichtel:poiId>101<\/wegwichtel:poiId>/);
assert.ok(gpx.indexOf('<wpt') < gpx.indexOf('<trk>'), 'GPX waypoints must be serialized before the track');
assert.equal(metadata.route.name, 'Neue Route');
assert.equal(metadata.route.serverRouteId, 42);
assert.equal(metadata.route.uploadedAt, '2026-09-27T18:00:00.000Z');
assert.equal(metadata.pois[0].audio.name, 'start.mp3');
assert.equal('gpx' in metadata, false);
assert.equal('_source' in metadata.route, false);