File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ const buildURL = {
23
23
baseUrl += options . param ? '&' + options . param + '=' + options . name : '' ;
24
24
baseUrl += options . additionalParam ? '&' + options . additionalParam : '' ;
25
25
baseUrl += options . sortOrder ? '&sortOrder=' + options . sortOrder : '' ;
26
- baseUrl += '&outputSelector(0)=SellerInfo&outputSelector(1)=PictureURLLarge' ;
26
+ baseUrl += '&outputSelector(0)=SellerInfo&outputSelector(1)=PictureURLLarge&outputSelector(2)=PictureURLSuperSize ' ;
27
27
baseUrl += options . limit ? '&paginationInput.entriesPerPage=' + options . limit : '' ;
28
28
baseUrl += options . globalID ? '&GLOBAL-ID=' + options . globalID : '' ;
29
29
baseUrl += options . pageNumber ? '&paginationInput.pageNumber=' + options . pageNumber : '' ;
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ describe('test building url methods', () => {
8
8
9
9
10
10
it ( 'test search url' , ( ) => {
11
- const expectedSearchUrl = '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
+ const expectedSearchUrl = '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&outputSelector(2)=PictureURLSuperSize& paginationInput.entriesPerPage=6&GLOBAL-ID=EBAY-US' ;
12
12
const options = {
13
13
name : 'iphone' ,
14
14
operationName : 'findItemsByKeywords' ,
Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ describe('test ebay finding Api', () => {
27
27
const ebay = new Ebay ( {
28
28
clientID : 'ABCD'
29
29
} ) ;
30
- nockFindingApi . get ( '/services/search/FindingService/v1?SECURITY-APPNAME=ABCD&OPERATION-NAME=findItemsAdvanced&SERVICE-VERSION=1.0.0&RESPONSE-DATA-FORMAT=JSON&paginationInput.entriesPerPage=2&keywords=ipad&itemFilter(0).name=ExpeditedShippingType&itemFilter(0).value=OneDayShipping&outputSelector(0)=SellerInfo&outputSelector(1)=PictureURLLarge&GLOBAL-ID=EBAY-US' )
30
+ nockFindingApi . get ( '/services/search/FindingService/v1?SECURITY-APPNAME=ABCD&OPERATION-NAME=findItemsAdvanced&SERVICE-VERSION=1.0.0&RESPONSE-DATA-FORMAT=JSON&paginationInput.entriesPerPage=2&keywords=ipad&itemFilter(0).name=ExpeditedShippingType&itemFilter(0).value=OneDayShipping&outputSelector(0)=SellerInfo&outputSelector(1)=PictureURLLarge&outputSelector(2)=PictureURLSuperSize& GLOBAL-ID=EBAY-US' )
31
31
. reply ( 200 , { 'findItemsAdvancedResponse' : [ { 'ack' : [ 'Success' ] } ] } ) ;
32
32
return ebay . findItemsAdvanced ( {
33
33
entriesPerPage : 2 ,
You can’t perform that action at this time.
0 commit comments