diff options
| author | littleblack111 <littleblack11111@gmail.com> | 2024-08-30 17:21:18 +0800 |
|---|---|---|
| committer | littleblack111 <littleblack11111@gmail.com> | 2024-08-30 17:21:18 +0800 |
| commit | efbc2ffe6a1ee5ec38a4396305561d6515d0943e (patch) | |
| tree | 2b4c94f18f2c792dfda813050755d5c0273fae22 /node_modules/camel-case/dist/index.spec.js | |
| parent | 43acceb75957c880a5ba5a31aae221394a36d5f6 (diff) | |
node fixes, updates
Diffstat (limited to 'node_modules/camel-case/dist/index.spec.js')
| -rw-r--r-- | node_modules/camel-case/dist/index.spec.js | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/node_modules/camel-case/dist/index.spec.js b/node_modules/camel-case/dist/index.spec.js new file mode 100644 index 00000000..7826a527 --- /dev/null +++ b/node_modules/camel-case/dist/index.spec.js @@ -0,0 +1,26 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +var _1 = require("."); +var TEST_CASES = [ + ["", ""], + ["test", "test"], + ["test string", "testString"], + ["Test String", "testString"], + ["TestV2", "testV2"], + ["_foo_bar_", "fooBar"], + ["version 1.2.10", "version_1_2_10"], + ["version 1.21.0", "version_1_21_0"], + ["version 1.2.10", "version1210", { transform: _1.camelCaseTransformMerge }], +]; +describe("camel case", function () { + var _loop_1 = function (input, result, options) { + it(input + " -> " + result, function () { + expect(_1.camelCase(input, options)).toEqual(result); + }); + }; + for (var _i = 0, TEST_CASES_1 = TEST_CASES; _i < TEST_CASES_1.length; _i++) { + var _a = TEST_CASES_1[_i], input = _a[0], result = _a[1], options = _a[2]; + _loop_1(input, result, options); + } +}); +//# sourceMappingURL=index.spec.js.map
\ No newline at end of file |
