Skip to content

Commit b7b1cf4

Browse files
Add files via upload
1 parent 3f9a7aa commit b7b1cf4

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

index.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ export default class MagentoRestApi {
160160
if (params && Object.keys(params).length > 0) {
161161
endpoint += '?' + this._searchTranslate(params);
162162
} else {
163-
endpoint += '?searchCriteria=all'
163+
endpoint += '?searchCriteria='
164164
}
165165
return this._formRequest('GET', endpoint);
166166
}

index.spec.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ describe('# Requests', function () {
105105
});
106106

107107
it('should execute get requests without params non https', async function () {
108-
moxios.stubRequest('https://magento.dev/rest/V1/orders?searchCriteria=all', {
108+
moxios.stubRequest('https://magento.dev/rest/V1/orders?searchCriteria=', {
109109
status: 200,
110110
response: {
111111
success: true,
@@ -127,7 +127,7 @@ describe('# Requests', function () {
127127
'tokenSecret': 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'
128128
});
129129

130-
moxios.stubRequest('http://magento.dev/rest/V1/orders?searchCriteria=all', {
130+
moxios.stubRequest('http://magento.dev/rest/V1/orders?searchCriteria=', {
131131
status: 200,
132132
response: {
133133
success: true,
@@ -149,7 +149,7 @@ describe('# Requests', function () {
149149
'tokenSecret': 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'
150150
});
151151

152-
moxios.stubRequest('http://magento.dev/rest/V1/orders?searchCriteria=all', {
152+
moxios.stubRequest('http://magento.dev/rest/V1/orders?searchCriteria=', {
153153
status: 200,
154154
response: {
155155
success: true,
@@ -163,7 +163,7 @@ describe('# Requests', function () {
163163
});
164164

165165
it('should execute get requests with empty object params https', async function () {
166-
moxios.stubRequest('https://magento.dev/rest/V1/orders?searchCriteria=all', {
166+
moxios.stubRequest('https://magento.dev/rest/V1/orders?searchCriteria=', {
167167
status: 200,
168168
response: {
169169
success: true,
@@ -202,7 +202,7 @@ describe('# Requests', function () {
202202
'sha': 256
203203
});
204204

205-
moxios.stubRequest('https://magento.dev/rest/V1/orders?searchCriteria=all', {
205+
moxios.stubRequest('https://magento.dev/rest/V1/orders?searchCriteria=', {
206206
status: 200,
207207
response: {
208208
success: true,

0 commit comments

Comments
 (0)