Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
vkarpov15 committed Dec 2, 2024
1 parent c774444 commit d1748e5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions netlify-functions-ecommerce/test/addToCart.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ describe('Add to Cart', function() {
params.body = JSON.stringify(params.body);
const findCart = await addToCart(params);
try {
findCart.body = JSON.parse(result.body);
findCart.body = JSON.parse(findCart.body);
} catch (error) {
throw new Error(`Error parsing response as JSON: ${findCart.body}`);
}
Expand All @@ -76,7 +76,7 @@ describe('Add to Cart', function() {
params.body = JSON.stringify(params.body);
const findCart = await addToCart(params);
try {
findCart.body = JSON.parse(result.body);
findCart.body = JSON.parse(findCart.body);
} catch (error) {
throw new Error(`Error parsing response as JSON: ${findCart.body}`);
}
Expand Down

0 comments on commit d1748e5

Please sign in to comment.