Use togpx fork for now
- with PR 11 merged - referencing jxon fork with namespace prefixes fixed
This commit is contained in:
parent
4c27f5894c
commit
954812cf52
4 changed files with 10 additions and 18 deletions
|
|
@ -45,8 +45,7 @@ test('simple track', () => {
|
|||
describe('voice hints', () => {
|
||||
test('2-locus', () => {
|
||||
let brouterGpx = read('2-locus.gpx');
|
||||
brouterGpx = brouterGpx.replace(/<(\/?)locus:/g, '<$1'); // TODO 'locus:' namespace
|
||||
brouterGpx = brouterGpx.replace(/.0<\/rteDistance/g, '</rteDistance'); // ignore .0 decimal
|
||||
brouterGpx = brouterGpx.replace(/.0<\/locus:rteDistance/g, '</locus:rteDistance'); // ignore .0 decimal
|
||||
brouterGpx = brouterGpx.replace(/\n\s*<\/extensions>\n\s*<extensions>/, ''); // ignore (invalid) double tag
|
||||
|
||||
const gpx = BR.Gpx.format(geoJson, 2);
|
||||
|
|
@ -75,7 +74,6 @@ describe('voice hints', () => {
|
|||
|
||||
test('6-orux', () => {
|
||||
let brouterGpx = read('6-orux.gpx');
|
||||
brouterGpx = brouterGpx.replace(/<(\/?)om:/g, '<$1'); // TODO namespace
|
||||
const gpx = BR.Gpx.format(geoJson, 6);
|
||||
expect(gpx).toEqual(brouterGpx);
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue