@antv/x6
Version:
JavaScript diagramming library that uses SVG and HTML for rendering.
17 lines • 814 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
var format_1 = require("./format");
describe('String', function () {
describe('#format', function () {
it('should return format string', function () {
var str = 'lives-Down_by the.River';
expect(format_1.pascalCase(str)).toBe('LivesDownByTheRiver');
expect(format_1.constantCase(str)).toBe('LIVES_DOWN_BY_THE_RIVER');
expect(format_1.dotCase(str)).toBe('lives.down.by.the.river');
expect(format_1.pathCase(str)).toBe('lives/down/by/the/river');
expect(format_1.sentenceCase(str)).toBe('Lives down by the river');
expect(format_1.titleCase(str)).toBe('Lives Down By The River');
});
});
});
//# sourceMappingURL=format.test.js.map