First attempt to run tests with minimal preset config

This commit is contained in:
Bryan Housel
2019-01-30 10:25:40 -05:00
parent 17bbc3d5a2
commit 15c0b82eb2

View File

@@ -6,6 +6,20 @@ iD.debug = true;
iD.data.imagery = [];
for (var k in iD.services) { delete iD.services[k]; }
// run with a minimal set of presets for speed
iD.data.presets = {
presets: {
area: { name: 'Area', tags: {}, geometry: ['area'] },
line: { name: 'Line', tags: {}, geometry: ['line'] },
point: { name: 'Point', tags: {}, geometry: ['point'] },
vertex: { name: 'Vertex', tags: {}, geometry: ['vertex'] },
relation: { name: 'Relation', tags: {}, geometry: ['relation'] },
// for tests related to areaKeys:
building: { name: 'Building', tags: { building: 'yes' }, geometry: ['area'] }
}
};
mocha.setup({
ui: 'bdd',
globals: [