summaryrefslogtreecommitdiff
path: root/node_modules/param-case/dist.es2015/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/param-case/dist.es2015/index.spec.js
parent43acceb75957c880a5ba5a31aae221394a36d5f6 (diff)
node fixes, updates
Diffstat (limited to 'node_modules/param-case/dist.es2015/index.spec.js')
-rw-r--r--node_modules/param-case/dist.es2015/index.spec.js22
1 files changed, 22 insertions, 0 deletions
diff --git a/node_modules/param-case/dist.es2015/index.spec.js b/node_modules/param-case/dist.es2015/index.spec.js
new file mode 100644
index 00000000..94952d20
--- /dev/null
+++ b/node_modules/param-case/dist.es2015/index.spec.js
@@ -0,0 +1,22 @@
+import { paramCase } from ".";
+var TEST_CASES = [
+ ["", ""],
+ ["test", "test"],
+ ["test string", "test-string"],
+ ["Test String", "test-string"],
+ ["TestV2", "test-v2"],
+ ["version 1.2.10", "version-1-2-10"],
+ ["version 1.21.0", "version-1-21-0"],
+];
+describe("param case", function () {
+ var _loop_1 = function (input, result) {
+ it(input + " -> " + result, function () {
+ expect(paramCase(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