source: imaps-frontend/node_modules/pascal-case/dist.es2015/index.spec.js@ 79a0317

main
Last change on this file since 79a0317 was 79a0317, checked in by stefan toskovski <stefantoska84@…>, 3 days ago

F4 Finalna Verzija

  • Property mode set to 100644
File size: 855 bytes
Line 
1import { pascalCase, pascalCaseTransformMerge } from ".";
2var 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];
12describe("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
Note: See TracBrowser for help on using the repository browser.