File tree 2 files changed +7
-3
lines changed
2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -24,7 +24,9 @@ describe("#AppBase_Client", () => {
24
24
} ) ;
25
25
expect ( true ) . toBe ( false ) ;
26
26
} catch ( e ) {
27
- expect ( e . message ) . toEqual ( "URL not present in options." ) ;
27
+ expect ( e . message ) . toEqual (
28
+ "url is required when using the elasticsearch Search backend."
29
+ ) ;
28
30
}
29
31
} ) ;
30
32
test ( "should throw app missing error" , ( ) => {
@@ -35,7 +37,9 @@ describe("#AppBase_Client", () => {
35
37
} ) ;
36
38
expect ( true ) . toBe ( false ) ;
37
39
} catch ( e ) {
38
- expect ( e . message ) . toEqual ( "App name is not present in options." ) ;
40
+ expect ( e . message ) . toEqual (
41
+ "app is required when using the elasticsearch Search backend."
42
+ ) ;
39
43
}
40
44
} ) ;
41
45
test ( "should throw protocol missing error" , ( ) => {
Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ function AppBase(config) {
25
25
host = '' ,
26
26
path = '' ,
27
27
protocol = '' ,
28
- } = URL ( ( config . endpoint ? config . endpoint . url : '' ) || config . url ) ;
28
+ } = URL ( ( config . endpoint ? config . endpoint . url : config . url ) || '' ) ;
29
29
let { url } = config ;
30
30
url = host + path ;
31
31
// Parse url
You can’t perform that action at this time.
0 commit comments