mirror of https://gitee.com/bigwinds/arangodb
11 lines
412 B
JavaScript
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");
|
|
});
|