diff --git a/test/unit/dataSourceProvider.js b/test/unit/dataSourceProvider.js index 5e70d8e59b..8a5ad58eea 100644 --- a/test/unit/dataSourceProvider.js +++ b/test/unit/dataSourceProvider.js @@ -247,7 +247,7 @@ describe('Provide in Sources', function () { featureLayer.source.uid = 8; featureLayer.parsingOptions.mergeFeatures = true; featureLayer.cache.data.clear(); - featureLayer.source._parsedDatasCaches = {}; + featureLayer.source._featuresCaches = {}; featureLayer.source.onLayerAdded({ crsOut: featureLayer.crs }); featureLayer.update(context, featureLayer, tile); DataSourceProvider.executeCommand(context.scheduler.commands[0]).then((features) => { diff --git a/test/unit/source.js b/test/unit/source.js index d19d81a635..1b0cceb391 100644 --- a/test/unit/source.js +++ b/test/unit/source.js @@ -229,7 +229,7 @@ describe('Sources', function () { assert.ok(source.extentsInsideLimit([extent, extent])); assert.ok(source.fetchedData); assert.ok(source.fetchedData); - assert.ok(!source.parsedData); + assert.ok(!source.features); assert.ok(source.isFileSource); fetchedData = source.fetchedData; assert.equal(fetchedData.properties.nom, 'Ariège'); @@ -244,7 +244,7 @@ describe('Sources', function () { crs: 'EPSG:4326', }); - assert.ok(!source.parsedData); + assert.ok(!source.features); assert.equal(source.urlFromExtent(), 'fake-file-url'); assert.ok(source.fetchedData); assert.ok(source.isFileSource); @@ -264,9 +264,9 @@ describe('Sources', function () { layer._resolve(); }); - it('should instance and use FileSource with parsedData', function () { + it('should instance and use FileSource with features', function () { const source = new FileSource({ - parsedData: { foo: 'bar', crs: 'EPSG:4326' }, + features: { foo: 'bar', crs: 'EPSG:4326' }, crs: 'EPSG:4326', }); source.onLayerAdded({ crsOut: source.crs }); @@ -282,17 +282,17 @@ describe('Sources', function () { assert.throws(() => new FileSource({ crs: 'EPSG:4326' }), Error); }); - describe('should set the crs projection from parsedData', function () { + describe('should set the crs projection from features', function () { it('with the crs', function () { const source = new FileSource({ - parsedData: { crs: 'EPSG:4326' }, + features: { crs: 'EPSG:4326' }, }); assert.strictEqual(source.crs, 'EPSG:4326'); }); it('with the crs projection', function () { const source = new FileSource({ - parsedData: { crs: 'EPSG:4326' }, + features: { crs: 'EPSG:4326' }, }); assert.strictEqual(source.crs, 'EPSG:4326'); }); diff --git a/test/unit/view.js b/test/unit/view.js index c4d73ca884..2e3ff889e5 100644 --- a/test/unit/view.js +++ b/test/unit/view.js @@ -21,7 +21,7 @@ describe('Viewer', function () { globelayer = new GlobeLayer('globe', new THREE.Group()); source = new FileSource({ - parsedData: { crs: 'EPSG:4326' }, + features: { crs: 'EPSG:4326' }, crs: 'EPSG:4326', });