@@ -7,7 +7,7 @@ describe('test building url methods', () => {
77
88
99 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' ;
1111 let options = {
1212 name : 'iphone' ,
1313 operationName : 'findItemsByKeywords' ,
@@ -16,32 +16,32 @@ describe('test building url methods', () => {
1616 limit : 6 ,
1717 globalID : 'EBAY-US' ,
1818 baseSvcUrl : 'svcs.ebay.com'
19- }
19+ } ;
2020 expect ( buildURL . buildSearchUrl ( options ) ) . to . be . equal ( expected_search_url ) ;
2121 } ) ;
2222
2323 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' ;
2525 let options = {
2626 name : 'iphone' ,
2727 operationName : 'demoShoppingName' ,
2828 param : 'keywords' ,
2929 clientID : 'testID' ,
3030 baseUrl : 'open.api.ebay.com'
31- }
31+ } ;
3232 expect ( buildURL . buildShoppingUrl ( options ) ) . to . be . equal ( expected_search_url ) ;
3333 } ) ;
3434
3535 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' ;
3737 let options = {
3838 name : 'iphone' ,
3939 operationName : 'demoShoppingName' ,
4040 param : 'keywords' ,
4141 clientID : 'testID' ,
4242 includeSelector : true ,
4343 baseUrl : 'open.api.ebay.com'
44- }
44+ } ;
4545 expect ( buildURL . buildShoppingUrl ( options ) ) . to . be . equal ( expected_search_url ) ;
4646 } ) ;
4747} ) ;
0 commit comments