You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
547 B
JavaScript
23 lines
547 B
JavaScript
import { StyleExpression } from "../../Source/Cesium.js";
|
|
|
|
describe("Scene/StyleExpression", function () {
|
|
function MockFeature() {}
|
|
|
|
MockFeature.prototype.getProperty = function (name) {
|
|
return undefined;
|
|
};
|
|
|
|
it("throws", function () {
|
|
var expression = new StyleExpression();
|
|
var feature = new MockFeature();
|
|
|
|
expect(function () {
|
|
return expression.evaluate(feature);
|
|
}).toThrowDeveloperError();
|
|
|
|
expect(function () {
|
|
return expression.evaluateColor(feature);
|
|
}).toThrowDeveloperError();
|
|
});
|
|
});
|