1
0
Fork 0
arangodb/js/common/tests/shell/shell-foxx-manager-utils-sp...

11 lines
412 B
JavaScript

"use strict";
const { expect } = require("chai");
const { getReadableName } = require("@arangodb/foxx/manager-utils");
test("getReadableName", () => {
expect(getReadableName("catch-fire")).to.equal("Catch Fire");
expect(getReadableName("catchFire")).to.equal("Catch Fire");
expect(getReadableName("CatchFire")).to.equal("Catch Fire");
expect(getReadableName("cAtChFiRe")).to.equal("C At Ch Fi Re");
});