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.
20 lines
519 B
JavaScript
20 lines
519 B
JavaScript
import { appendForwardSlash } from "../../Source/Cesium.js";
|
|
|
|
describe("Core/appendForwardSlash", function () {
|
|
it("Appends to a url", function () {
|
|
expect(appendForwardSlash("http://cesiumjs.org")).toEqual(
|
|
"http://cesiumjs.org/"
|
|
);
|
|
});
|
|
|
|
it("Does not append to a url", function () {
|
|
expect(appendForwardSlash("http://cesiumjs.org/")).toEqual(
|
|
"http://cesiumjs.org/"
|
|
);
|
|
});
|
|
|
|
it("Appends to an empty string", function () {
|
|
expect(appendForwardSlash("")).toEqual("/");
|
|
});
|
|
});
|