Skip to content

Commit

Permalink
Rewrite tests to actually test selection of a document and then execu…
Browse files Browse the repository at this point in the history
…te commands instead of executing string functions.
  • Loading branch information
marclipovsky committed Oct 18, 2024
1 parent 5c91b1b commit f3bed00
Show file tree
Hide file tree
Showing 5 changed files with 669 additions and 224 deletions.
45 changes: 45 additions & 0 deletions content.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
moz-transform
-moz-transform
foo Bar
foo bar
ääkkönen
foo Bar
some_class_name
MozTransform
Foo Bar
capitalize dash-CamelCase_underscore trim
Abc
Un éléphant à l'orée du bois
HELLOworld
This-is_snake case
screaming-snake case
my name is tristan
this is a test
The quick brown fox jumps over the lazy dog.
Underscored-is-like snake-case
aabbccdd
aabbccdd
aabbccddaabbccdd
aabbccdd
a1 b2 c3 4d 5e 6f 12x y23 34z45
a1 b2 c3 4d 5e
6f 12x y23 34z45
a-4 b-3 c-2 -1d 0e
6f 12x y23 34z45
a1 b2 c3 4d 5e 6f 12x y23 34z45
a1 b2 c3 4d
5e 6f 12x y23 34z45
a-3 b-2 c-1 0d
1e 6f 12x y23 34z45
a1 b2 c3 4d 5e 6f 12x y23 34z45

a1 b2 c3 4d 5e 6f 12x y23 34z45

a1 b2 c3 4d 5e 6f 12x y23 34z45
a14 b2 c3
4d 5e 6f 7x y8 9z12
\u0061\u0062\u0063\u4e2d\u6587\ud83d\udc96
abc中文💖
Hello, World!
12345!@#$%
Test123!
40 changes: 20 additions & 20 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -2,27 +2,27 @@ import typescriptEslint from "@typescript-eslint/eslint-plugin";
import tsParser from "@typescript-eslint/parser";

export default [{
files: ["**/*.ts"],
files: ["**/*.ts"],
}, {
plugins: {
"@typescript-eslint": typescriptEslint,
},
plugins: {
"@typescript-eslint": typescriptEslint,
},

languageOptions: {
parser: tsParser,
ecmaVersion: 2022,
sourceType: "module",
},
languageOptions: {
parser: tsParser,
ecmaVersion: 2022,
sourceType: "module",
},

rules: {
"@typescript-eslint/naming-convention": ["warn", {
selector: "import",
format: ["camelCase", "PascalCase"],
}],
rules: {
"@typescript-eslint/naming-convention": ["warn", {
selector: "import",
format: ["camelCase", "PascalCase"],
}],

curly: "warn",
eqeqeq: "warn",
"no-throw-literal": "warn",
semi: "warn",
},
}];
curly: "warn",
eqeqeq: "warn",
"no-throw-literal": "warn",
semi: "warn",
},
}];
Loading

0 comments on commit f3bed00

Please sign in to comment.