cesium/packages/engine/Specs/Core/appendForwardSlashSpec.js

20 lines
513 B
JavaScript

import { appendForwardSlash } from "../../index.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("/");
});
});