diff --git a/test/config/tests.json b/test/config/tests.json index 834880cc5..3cdedb216 100644 --- a/test/config/tests.json +++ b/test/config/tests.json @@ -17,6 +17,7 @@ "./js/specs/unit/models/metadata/eml211/EMLOtherEntity.spec.js", "./js/specs/unit/models/metadata/eml211/EMLParty.spec.js", "./js/specs/unit/models/metadata/eml211/EMLTemporalCoverage.spec.js", + "./js/specs/unit/models/maps/assets/CesiumGeohash.js", "./js/specs/unit/models/maps/assets/CesiumImagery.js", "./js/specs/unit/common/Utilities.spec.js" ], diff --git a/test/js/specs/unit/models/maps/assets/CesiumGeohash.js b/test/js/specs/unit/models/maps/assets/CesiumGeohash.js new file mode 100644 index 000000000..3586dcde7 --- /dev/null +++ b/test/js/specs/unit/models/maps/assets/CesiumGeohash.js @@ -0,0 +1,40 @@ +define([ + "../../../../../../../../../src/js/models/maps/assets/CesiumGeohash", + "../../../../../../../../../src/components/cesium/Cesium" + ], function (CesiumGeohash, Cesium) { + + // Configure the Chai assertion library + var should = chai.should(); + var expect = chai.expect; + + describe("CesiumGeohash Test Suite", function () { + /* Set up */ + beforeEach(function () { + + }) + + /* Tear down */ + afterEach(function () { + + }) + + describe("Initialization", function () { + it("should create a CesiumGeohash model", function () { + (new CesiumGeohash()).should.be.instanceof(CesiumGeohash) + }); + }); + + describe("Working with Geohashes", function () { + + it("gets the geohash level", function () { + + let g = new CesiumGeohash(); + g.setGeohashLevel(20000); + g.get("geohashLevel").should.eql(5); + + }) + + }); + + }); + }); \ No newline at end of file diff --git a/test/js/specs/unit/models/project/Project.spec.js b/test/js/specs/unit/models/project/Project.spec.js index 7f32c045f..29edd45dd 100644 --- a/test/js/specs/unit/models/project/Project.spec.js +++ b/test/js/specs/unit/models/project/Project.spec.js @@ -14,7 +14,7 @@ function checkFields(model, fields, values) { } define([ - "../../../../../../../../src/js/models/Project", + "../../../../../../../../src/js/models/projects/Project", ], function (Project) { // Configure the Chai assertion library