Commit f635c24 1 parent 79a6b15 commit f635c24 Copy full SHA for f635c24
File tree 1 file changed +12
-16
lines changed
1 file changed +12
-16
lines changed Original file line number Diff line number Diff line change 26
26
27
27
test_syntax_error = '{<!@3@^ yeah!/\n '
28
28
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 ))
You can’t perform that action at this time.
0 commit comments