File tree Expand file tree Collapse file tree 3 files changed +4
-9
lines changed Expand file tree Collapse file tree 3 files changed +4
-9
lines changed Original file line number Diff line number Diff line change 4
4
"lines" : 90 ,
5
5
"statements" : 90 ,
6
6
"functions" : 90 ,
7
- "branches" : 80 ,
7
+ "branches" : 85 ,
8
8
"reporter" : [
9
9
" html" ,
10
10
" text" ,
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ import PlaceHolderResolver from './PlaceHolderResolver.js';
5
5
import PlaceHolderSelector from './PlaceHolderSelector.js' ;
6
6
import PrefixSelector from './PrefixSelector.js' ;
7
7
import URLResolver from './URLResolver.js' ;
8
- import WindowLocationConfig from " ./WindowLocationConfig.js" ;
8
+ import WindowLocationConfig from ' ./WindowLocationConfig.js' ;
9
9
10
10
export default class ConfigFactory {
11
11
static getGlobalRef ( ) {
Original file line number Diff line number Diff line change @@ -3,21 +3,16 @@ import DelegatingConfig from './DelegatingConfig.js';
3
3
// import ValueResolvingConfig from './ValueResolvingConfig.js';
4
4
5
5
export default class WindowLocationConfig extends DelegatingConfig {
6
-
7
- constructor ( config , path ) {
8
- super ( config , path ) ;
9
- }
10
-
11
6
// eslint-disable-next-line class-methods-use-this
12
7
has ( path ) {
13
- const location = `${ window . location . origin } ${ window . location . pathname } ` . replaceAll ( '.' , '+' ) ;
8
+ const location = `${ window . location . origin } ${ window . location . pathname } ` . replaceAll ( '.' , '+' ) ;
14
9
15
10
return this . config . has ( `${ location } .${ path } ` )
16
11
|| this . config . has ( path ) ;
17
12
}
18
13
19
14
get ( path , defaultValue ) {
20
- const location = `${ window . location . origin } ${ window . location . pathname } ` . replaceAll ( '.' , '+' ) ;
15
+ const location = `${ window . location . origin } ${ window . location . pathname } ` . replaceAll ( '.' , '+' ) ;
21
16
if ( ( typeof defaultValue !== 'undefined' ) && this . has ( path ) === false ) {
22
17
return defaultValue ;
23
18
}
You can’t perform that action at this time.
0 commit comments