Skip to content

Commit f635c24

Browse files
committed
ESLintBearTest: Simplify formatting
Simplify the formatting to be better readable.
1 parent 79a6b15 commit f635c24

File tree

1 file changed

+12
-16
lines changed

1 file changed

+12
-16
lines changed

tests/js/ESLintBearTest.py

+12-16
Original file line numberDiff line numberDiff line change
@@ -26,19 +26,15 @@
2626

2727
test_syntax_error = '{<!@3@^ yeah!/\n'
2828

29-
eslintconfig = os.path.join(os.path.dirname(__file__),
30-
"test_files",
31-
"eslintconfig.json")
32-
33-
ESLintBearTestWithConfig = verify_local_bear(ESLintBear,
34-
valid_files=('',),
35-
invalid_files=(test_bad,
36-
test_good),
37-
settings={"eslint_config":
38-
eslintconfig})
39-
40-
ESLintBearWithoutConfig = verify_local_bear(ESLintBear,
41-
valid_files=(
42-
test_good, ''),
43-
invalid_files=(
44-
test_syntax_error, test_bad))
29+
test_dir = os.path.join(os.path.dirname(__file__), "test_files")
30+
31+
ESLintBearWithConfigTest = verify_local_bear(
32+
ESLintBear,
33+
valid_files=('',),
34+
invalid_files=(test_bad, test_good),
35+
settings={"eslint_config": os.path.join(test_dir, "eslintconfig.json")})
36+
37+
ESLintBearWithoutConfigTest = verify_local_bear(
38+
ESLintBear,
39+
valid_files=(test_good, ''),
40+
invalid_files=(test_syntax_error, test_bad))

0 commit comments

Comments
 (0)