File tree 1 file changed +9
-23
lines changed
1 file changed +9
-23
lines changed Original file line number Diff line number Diff line change @@ -37,26 +37,12 @@ function makeTests(component, filter) {
37
37
} ;
38
38
}
39
39
40
- describe ( 'Test annotations' , makeTests ( domainRefComponents . annotations ,
41
- function ( f , i ) {
42
- if ( testNumber === undefined ) {
43
- return true ;
44
- }
45
- return i === testNumber ;
46
- } ) ) ;
47
-
48
- describe ( 'Test images' , makeTests ( domainRefComponents . images ,
49
- function ( f , i ) {
50
- if ( testNumber === undefined ) {
51
- return true ;
52
- }
53
- return i === testNumber ;
54
- } ) ) ;
55
-
56
- describe ( 'Test shapes' , makeTests ( domainRefComponents . shapes ,
57
- function ( f , i ) {
58
- if ( testNumber === undefined ) {
59
- return true ;
60
- }
61
- return i === testNumber ;
62
- } ) ) ;
40
+ [ 'annotations' , 'images' , 'shapes' ] . forEach ( function ( componentName ) {
41
+ describe ( 'Test ' + componentName , makeTests ( domainRefComponents [ componentName ] ,
42
+ function ( f , i ) {
43
+ if ( testNumber === undefined ) {
44
+ return true ;
45
+ }
46
+ return i === testNumber ;
47
+ } ) ) ;
48
+ } ) ;
You can’t perform that action at this time.
0 commit comments