@@ -7,7 +7,7 @@ describe('test building url methods', () => {
7
7
8
8
9
9
it ( 'test search url' , ( ) => {
10
- let expected_search_url = 'https://svcs.ebay.com/services/search/FindingService/v1?SECURITY-APPNAME=testID&OPERATION-NAME=findItemsByKeywords&SERVICE-VERSION=1.0.0&RESPONSE-DATA-FORMAT=JSON&keywords=iphone&outputSelector(0)=SellerInfo&paginationInput.entriesPerPage=6&GLOBAL-ID=EBAY-US'
10
+ let expected_search_url = 'https://svcs.ebay.com/services/search/FindingService/v1?SECURITY-APPNAME=testID&OPERATION-NAME=findItemsByKeywords&SERVICE-VERSION=1.0.0&RESPONSE-DATA-FORMAT=JSON&keywords=iphone&outputSelector(0)=SellerInfo&outputSelector(1)=PictureURLLarge& paginationInput.entriesPerPage=6&GLOBAL-ID=EBAY-US' ;
11
11
let options = {
12
12
name : 'iphone' ,
13
13
operationName : 'findItemsByKeywords' ,
@@ -16,32 +16,32 @@ describe('test building url methods', () => {
16
16
limit : 6 ,
17
17
globalID : 'EBAY-US' ,
18
18
baseSvcUrl : 'svcs.ebay.com'
19
- }
19
+ } ;
20
20
expect ( buildURL . buildSearchUrl ( options ) ) . to . be . equal ( expected_search_url ) ;
21
21
} ) ;
22
22
23
23
it ( 'test Shopping url without selector' , ( ) => {
24
- let expected_search_url = 'https://open.api.ebay.com/Shopping?appid=testID&callname=demoShoppingName&version=967&siteid=0&responseencoding=JSON&keywords=iphone'
24
+ let expected_search_url = 'https://open.api.ebay.com/Shopping?appid=testID&callname=demoShoppingName&version=967&siteid=0&responseencoding=JSON&keywords=iphone' ;
25
25
let options = {
26
26
name : 'iphone' ,
27
27
operationName : 'demoShoppingName' ,
28
28
param : 'keywords' ,
29
29
clientID : 'testID' ,
30
30
baseUrl : 'open.api.ebay.com'
31
- }
31
+ } ;
32
32
expect ( buildURL . buildShoppingUrl ( options ) ) . to . be . equal ( expected_search_url ) ;
33
33
} ) ;
34
34
35
35
it ( 'test Shopping url including selector' , ( ) => {
36
- let expected_search_url = 'https://open.api.ebay.com/Shopping?appid=testID&callname=demoShoppingName&version=967&siteid=0&responseencoding=JSON&keywords=iphone&IncludeSelector=true'
36
+ let expected_search_url = 'https://open.api.ebay.com/Shopping?appid=testID&callname=demoShoppingName&version=967&siteid=0&responseencoding=JSON&keywords=iphone&IncludeSelector=true' ;
37
37
let options = {
38
38
name : 'iphone' ,
39
39
operationName : 'demoShoppingName' ,
40
40
param : 'keywords' ,
41
41
clientID : 'testID' ,
42
42
includeSelector : true ,
43
43
baseUrl : 'open.api.ebay.com'
44
- }
44
+ } ;
45
45
expect ( buildURL . buildShoppingUrl ( options ) ) . to . be . equal ( expected_search_url ) ;
46
46
} ) ;
47
47
} ) ;
0 commit comments