summaryrefslogtreecommitdiff
path: root/node_modules/no-case/dist.es2015/index.spec.js
diff options
context:
space:
mode:
authorlittleblack111 <littleblack11111@gmail.com>2026-05-18 23:10:59 +0800
committerlittleblack111 <littleblack11111@gmail.com>2026-05-18 23:41:44 +0800
commitfc87c009806dcc98867f6b58efe29b042aa01dee (patch)
tree8f59b3f4a5b66e9dfef2d40c8d318e258a521228 /node_modules/no-case/dist.es2015/index.spec.js
parent3336b2356ee6152d9c6ae59bd9b87ccbc0958407 (diff)
node: updatemain
Diffstat (limited to 'node_modules/no-case/dist.es2015/index.spec.js')
-rw-r--r--node_modules/no-case/dist.es2015/index.spec.js57
1 files changed, 0 insertions, 57 deletions
diff --git a/node_modules/no-case/dist.es2015/index.spec.js b/node_modules/no-case/dist.es2015/index.spec.js
deleted file mode 100644
index 5fd9b15c..00000000
--- a/node_modules/no-case/dist.es2015/index.spec.js
+++ /dev/null
@@ -1,57 +0,0 @@
-import { noCase } from ".";
-var TEST_CASES = [
- // Single words.
- ["test", "test"],
- ["TEST", "test"],
- // Camel case.
- ["testString", "test string"],
- ["testString123", "test string123"],
- ["testString_1_2_3", "test string 1 2 3"],
- ["x_256", "x 256"],
- ["anHTMLTag", "an html tag"],
- ["ID123String", "id123 string"],
- ["Id123String", "id123 string"],
- ["foo bar123", "foo bar123"],
- ["a1bStar", "a1b star"],
- // Constant case.
- ["CONSTANT_CASE ", "constant case"],
- ["CONST123_FOO", "const123 foo"],
- // Random cases.
- ["FOO_bar", "foo bar"],
- ["XMLHttpRequest", "xml http request"],
- ["IQueryAArgs", "i query a args"],
- // Non-alphanumeric separators.
- ["dot.case", "dot case"],
- ["path/case", "path case"],
- ["snake_case", "snake case"],
- ["snake_case123", "snake case123"],
- ["snake_case_123", "snake case 123"],
- // Punctuation.
- ['"quotes"', "quotes"],
- // Space between number parts.
- ["version 0.45.0", "version 0 45 0"],
- ["version 0..78..9", "version 0 78 9"],
- ["version 4_99/4", "version 4 99 4"],
- // Whitespace.
- [" test ", "test"],
- // Number string input.
- ["something_2014_other", "something 2014 other"],
- // https://github.com/blakeembrey/change-case/issues/21
- ["amazon s3 data", "amazon s3 data"],
- ["foo_13_bar", "foo 13 bar"],
- // Customization.
- ["camel2019", "camel 2019", { splitRegexp: /([a-z])([A-Z0-9])/g }],
- ["minifyURLs", "minify urls", { splitRegexp: /([a-z])([A-Z0-9])/g }],
-];
-describe("no case", function () {
- var _loop_1 = function (input, result, options) {
- it(input + " -> " + result, function () {
- expect(noCase(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