Make POSTGIS_VERSION detection automatic

This commit is contained in:
Raul Marin
2018-06-11 14:47:39 +02:00
parent 462d25bebc
commit 9bbbe9e7c1
9 changed files with 23 additions and 9 deletions
+2 -2
View File
@@ -152,7 +152,7 @@ describe('buffer size per format', function () {
});
});
};
if (process.env.POSTGIS_VERSION === '2.4' && test.format === 'mvt'){
if (process.env.POSTGIS_VERSION >= '20400' && test.format === 'mvt'){
testFn(true);
}
testFn(false);
@@ -465,7 +465,7 @@ describe('buffer size per format for named maps w/o placeholders', function () {
});
});
};
if (process.env.POSTGIS_VERSION === '2.4' && test.format === 'mvt'){
if (process.env.POSTGIS_VERSION >= '20400' && test.format === 'mvt'){
testFn(true);
}
testFn(false);