-
-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add basic CesiumGeohash test and update Project test to new model fil…
…e location.
- Loading branch information
1 parent
5b1fdfd
commit 1a4d23c
Showing
3 changed files
with
42 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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); | ||
|
||
}) | ||
|
||
}); | ||
|
||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters