File tree Expand file tree Collapse file tree 2 files changed +22
-6
lines changed Expand file tree Collapse file tree 2 files changed +22
-6
lines changed Original file line number Diff line number Diff line change @@ -11,26 +11,26 @@ const modules = {
11
11
* @namespace
12
12
*/
13
13
ui5Framework : {
14
- Openui5Resolver : require ( "./lib/ui5Framework/Openui5Resolver" ) ,
15
- Sapui5Resolver : require ( "./lib/ui5Framework/Sapui5Resolver" )
14
+ Openui5Resolver : "./lib/ui5Framework/Openui5Resolver" ,
15
+ Sapui5Resolver : "./lib/ui5Framework/Sapui5Resolver"
16
16
} ,
17
17
/**
18
18
* @public
19
19
* @see module:@ui5/project.validation
20
20
* @namespace
21
21
*/
22
22
validation : {
23
- validator : require ( "./lib/validation/validator" ) ,
24
- ValidationError : require ( "./lib/validation/ValidationError" )
23
+ validator : "./lib/validation/validator" ,
24
+ ValidationError : "./lib/validation/ValidationError"
25
25
} ,
26
26
/**
27
27
* @private
28
28
* @see module:@ui5/project.translators
29
29
* @namespace
30
30
*/
31
31
translators : {
32
- " npm" : "./lib/translators/npm" ,
33
- " static" : "./lib/translators/static"
32
+ npm : "./lib/translators/npm" ,
33
+ static : "./lib/translators/static"
34
34
}
35
35
} ;
36
36
Original file line number Diff line number Diff line change
1
+ const test = require ( "ava" ) ;
2
+ const index = require ( "../../index" ) ;
3
+
4
+ test ( "index.js exports all expected modules" , ( t ) => {
5
+ t . truthy ( index . normalizer , "Module exported" ) ;
6
+ t . truthy ( index . projectPreprocessor , "Module exported" ) ;
7
+
8
+ t . truthy ( index . ui5Framework . Openui5Resolver , "Module exported" ) ;
9
+ t . truthy ( index . ui5Framework . Sapui5Resolver , "Module exported" ) ;
10
+
11
+ t . truthy ( index . validation . validator , "Module exported" ) ;
12
+ t . truthy ( index . validation . ValidationError , "Module exported" ) ;
13
+
14
+ t . truthy ( index . translators . npm , "Module exported" ) ;
15
+ t . truthy ( index . translators . static , "Module exported" ) ;
16
+ } ) ;
You can’t perform that action at this time.
0 commit comments