Skip to content

Commit

Permalink
fix: fix retry error tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Scomodev committed Oct 20, 2023
1 parent 3138a82 commit 8df7dce
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/functional/utils_test.js
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,7 @@ describe('Utils Unit Tests', function() {

function givenGetReturnsError() {
requestStub.returns(Promise.resolve([{}, {}]));
handleResponseStub.returns(Promise.reject({errorCode: 4001}));
handleResponseStub.returns({errorCode: 4001});
}

function givenGetReturnsSuccess() {
Expand Down Expand Up @@ -493,7 +493,7 @@ describe('Utils Unit Tests', function() {

function givenPostReturnsError() {
requestStub.returns(Promise.resolve([{}, {}]));
handleResponseStub.returns(Promise.reject({errorCode: 4001}));
handleResponseStub.returns({errorCode: 4001});
}

function givenPostReturnsSuccess() {
Expand Down Expand Up @@ -683,7 +683,7 @@ describe('Utils Unit Tests', function() {

function givenPutReturnsError() {
requestStub.returns(Promise.resolve([{}, {}]));
handleResponseStub.returns(Promise.reject({errorCode: 4001}));
handleResponseStub.returns({errorCode: 4001});
}

function givenPutReturnsSuccess() {
Expand Down Expand Up @@ -869,7 +869,7 @@ describe('Utils Unit Tests', function() {

function givenDeleteReturnsError() {
requestStub.returns(Promise.resolve([{}, {}]));
handleResponseStub.returns(Promise.reject({errorCode: 4001}));
handleResponseStub.returns({errorCode: 4001});
}

function givenDeleteReturnsSuccess() {
Expand Down

0 comments on commit 8df7dce

Please sign in to comment.