summaryrefslogtreecommitdiff
path: root/node_modules/dot-case/dist/index.spec.js
diff options
context:
space:
mode:
authorlittleblack111 <littleblack11111@gmail.com>2024-08-30 17:21:18 +0800
committerlittleblack111 <littleblack11111@gmail.com>2024-08-30 17:21:18 +0800
commitefbc2ffe6a1ee5ec38a4396305561d6515d0943e (patch)
tree2b4c94f18f2c792dfda813050755d5c0273fae22 /node_modules/dot-case/dist/index.spec.js
parent43acceb75957c880a5ba5a31aae221394a36d5f6 (diff)
node fixes, updates
Diffstat (limited to 'node_modules/dot-case/dist/index.spec.js')
-rw-r--r--node_modules/dot-case/dist/index.spec.js26
1 files changed, 26 insertions, 0 deletions
diff --git a/node_modules/dot-case/dist/index.spec.js b/node_modules/dot-case/dist/index.spec.js
new file mode 100644
index 00000000..9dedb91a
--- /dev/null
+++ b/node_modules/dot-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", "test.string"],
+ ["Test String", "test.string"],
+ ["dot.case", "dot.case"],
+ ["path/case", "path.case"],
+ ["TestV2", "test.v2"],
+ ["version 1.2.10", "version.1.2.10"],
+ ["version 1.21.0", "version.1.21.0"],
+];
+describe("dot case", function () {
+ var _loop_1 = function (input, result) {
+ it(input + " -> " + result, function () {
+ expect(_1.dotCase(input)).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];
+ _loop_1(input, result);
+ }
+});
+//# sourceMappingURL=index.spec.js.map \ No newline at end of file