File tree Expand file tree Collapse file tree 2 files changed +9
-51
lines changed Expand file tree Collapse file tree 2 files changed +9
-51
lines changed Original file line number Diff line number Diff line change 38
38
include __DIR__ . '/lib/resources.php ' ,
39
39
include __DIR__ . '/src/resources.php '
40
40
);
41
-
42
- /**
43
- * Register QUnit test base classes used by test modules in dependent components.
44
- * @see https://www.mediawiki.org/wiki/Manual:Hooks/ResourceLoaderTestModules
45
- * @since 0.1
46
- *
47
- * @param array &$testModules
48
- * @param \ResourceLoader &$resourceLoader
49
- *
50
- * @return boolean
51
- */
52
- $ GLOBALS ['wgHooks ' ]['ResourceLoaderTestModules ' ][] = function (
53
- array &$ testModules ,
54
- \ResourceLoader &$ resourceLoader
55
- ) {
56
- preg_match ( '+ ' . preg_quote ( DIRECTORY_SEPARATOR ) . '(?:vendor|extensions) '
57
- . preg_quote ( DIRECTORY_SEPARATOR ) . '.*+ ' , __DIR__ , $ remoteExtPath );
58
-
59
- $ moduleTemplate = [
60
- 'localBasePath ' => __DIR__ . '/tests ' ,
61
- 'remoteExtPath ' => '.. ' . $ remoteExtPath [0 ] . DIRECTORY_SEPARATOR . 'tests ' ,
62
- ];
63
-
64
- $ testModuleTemplates = [
65
- 'valueFormatters.tests ' => $ moduleTemplate + [
66
- 'scripts ' => [
67
- 'src/valueFormatters/valueFormatters.tests.js ' ,
68
- ],
69
- 'dependencies ' => [
70
- 'dataValues.DataValue ' ,
71
- 'util.inherit ' ,
72
- 'valueFormatters ' ,
73
- ],
74
- ],
75
-
76
- 'valueParsers.tests ' => $ moduleTemplate + [
77
- 'scripts ' => [
78
- 'src/valueParsers/valueParsers.tests.js ' ,
79
- ],
80
- 'dependencies ' => [
81
- 'dataValues.DataValue ' ,
82
- 'util.inherit ' ,
83
- 'valueParsers ' ,
84
- ],
85
- ],
86
- ];
87
-
88
- $ testModules ['qunit ' ] = array_merge ( $ testModules ['qunit ' ], $ testModuleTemplates );
89
-
90
- return true ;
91
- };
Original file line number Diff line number Diff line change
1
+ {
2
+ "extends" : " ../.eslintrc.json" ,
3
+ "env" : {
4
+ "qunit" : true
5
+ },
6
+ "rules" : {
7
+ "dot-notation" : " off"
8
+ }
9
+ }
You can’t perform that action at this time.
0 commit comments