From 4656425799d43a2452cea57ea1ec85629f48bcef Mon Sep 17 00:00:00 2001 From: Lawrence Owen Date: Tue, 24 Sep 2024 13:37:25 +1000 Subject: [PATCH] Remove unused params - Delete Experiment.ts --- ...WebProcessingServiceCatalogFunctionSpec.ts | 6 +- test/Models/Experiment.ts | 66 ------------------- 2 files changed, 3 insertions(+), 69 deletions(-) delete mode 100644 test/Models/Experiment.ts diff --git a/test/Models/Catalog/Ows/WebProcessingServiceCatalogFunctionSpec.ts b/test/Models/Catalog/Ows/WebProcessingServiceCatalogFunctionSpec.ts index 97ca0406af..8cabc51898 100644 --- a/test/Models/Catalog/Ows/WebProcessingServiceCatalogFunctionSpec.ts +++ b/test/Models/Catalog/Ows/WebProcessingServiceCatalogFunctionSpec.ts @@ -148,7 +148,7 @@ describe("WebProcessingServiceCatalogFunction", function () { let dispose: any; job = (await wps.submitJob()) as WebProcessingServiceCatalogFunctionJob; - await new Promise((resolve, _reject) => { + await new Promise((resolve) => { dispose = reaction( () => job.downloadedResults, () => { @@ -220,7 +220,7 @@ describe("WebProcessingServiceCatalogFunction", function () { let dispose2: any; // Wait for job to finish polling, then check if finished - await new Promise((resolve, _reject) => { + await new Promise((resolve) => { dispose2 = reaction( () => job.refreshEnabled, () => { @@ -307,7 +307,7 @@ describe("WebProcessingServiceCatalogFunction", function () { let dispose2: any; // Wait for job to finish polling, then check if failed - await new Promise((resolve, _reject) => { + await new Promise((resolve) => { dispose2 = reaction( () => job.refreshEnabled, () => { diff --git a/test/Models/Experiment.ts b/test/Models/Experiment.ts deleted file mode 100644 index b781c42321..0000000000 --- a/test/Models/Experiment.ts +++ /dev/null @@ -1,66 +0,0 @@ -import { autorun, configure, runInAction } from "mobx"; -import CatalogMemberMixin from "../../lib/ModelMixins/CatalogMemberMixin"; -import MappableMixin from "../../lib/ModelMixins/MappableMixin"; -import CommonStrata from "../../lib/Models/Definition/CommonStrata"; -import Terria from "../../lib/Models/Terria"; -import WebMapServiceCatalogGroup from "../../lib/Models/Catalog/Ows/WebMapServiceCatalogGroup"; -import WebMapServiceCatalogItem from "../../lib/Models/Catalog/Ows/WebMapServiceCatalogItem"; - -configure({ - enforceActions: "always", - computedRequiresReaction: true -}); - -describe("NewStuff", function () { - it("test", function () { - const terria = new Terria(); - const wms = new WebMapServiceCatalogGroup( - "Taxation Statistics 2011-2012", - terria - ); - - const wmsItem = new WebMapServiceCatalogItem( - "Taxation Statistics 2011-2012/ckan_95d9e550_8b36_4273_8df7_2b76c140e73a", - terria - ); - wmsItem.setTrait(CommonStrata.definition, "name", "Foo"); - terria.addModel(wmsItem); - - const wmsItem2 = new WebMapServiceCatalogItem("another", terria); - wmsItem2.setTrait(CommonStrata.definition, "name", "Another"); - wmsItem2.setTrait( - CommonStrata.definition, - "url", - "https://data.gov.au/geoserver/taxation-statistics-2011-12/wms" - ); - terria.addModel(wmsItem2); - - runInAction(() => { - wms.setTrait(CommonStrata.definition, "members", [wmsItem2.uniqueId!]); - wms.setTrait( - CommonStrata.definition, - "name", - "Taxation Statistics 2011-2012" - ); - wms.setTrait( - CommonStrata.definition, - "url", - "https://data.gov.au/geoserver/taxation-statistics-2011-12/wms" - ); - }); - - autorun((_dispose) => { - console.log("Run: " + wms.memberModels.length); - wms.memberModels.forEach((model) => { - if (CatalogMemberMixin.isMixedInto(model)) { - console.log(`${model.name}: ${model.uniqueId}`); - } - if (MappableMixin.isMixedInto(model)) { - console.log(model.mapItems); - } - }); - }); - - expect().nothing(); - }); -});