[79a0317] | 1 | import { pascalCase, pascalCaseTransformMerge } from ".";
|
---|
| 2 | var TEST_CASES = [
|
---|
| 3 | ["", ""],
|
---|
| 4 | ["test", "Test"],
|
---|
| 5 | ["test string", "TestString"],
|
---|
| 6 | ["Test String", "TestString"],
|
---|
| 7 | ["TestV2", "TestV2"],
|
---|
| 8 | ["version 1.2.10", "Version_1_2_10"],
|
---|
| 9 | ["version 1.21.0", "Version_1_21_0"],
|
---|
| 10 | ["version 1.21.0", "Version1210", { transform: pascalCaseTransformMerge }],
|
---|
| 11 | ];
|
---|
| 12 | describe("pascal case", function () {
|
---|
| 13 | var _loop_1 = function (input, result, options) {
|
---|
| 14 | it(input + " -> " + result, function () {
|
---|
| 15 | expect(pascalCase(input, options)).toEqual(result);
|
---|
| 16 | });
|
---|
| 17 | };
|
---|
| 18 | for (var _i = 0, TEST_CASES_1 = TEST_CASES; _i < TEST_CASES_1.length; _i++) {
|
---|
| 19 | var _a = TEST_CASES_1[_i], input = _a[0], result = _a[1], options = _a[2];
|
---|
| 20 | _loop_1(input, result, options);
|
---|
| 21 | }
|
---|
| 22 | });
|
---|
| 23 | //# sourceMappingURL=index.spec.js.map |
---|