Skip to content
This repository has been archived by the owner on May 24, 2023. It is now read-only.

Add unit tests #6

Merged
merged 46 commits into from
Mar 7, 2022
Merged

Add unit tests #6

merged 46 commits into from
Mar 7, 2022

Conversation

lojzatran
Copy link
Contributor

@lojzatran lojzatran commented Mar 4, 2022

  • Add unit test cases for error handling cases
  • Add unit test cases for nextDeliveryDate calculations

Why is one test failing? It's because I am testing retry on 500 error. This is currently being addressed in this PR: commercetools/nodejs#1764 by another team.

@lojzatran lojzatran requested a review from ahmetoz March 4, 2022 16:08
failedCheckoutOrders: 1,
duplicatedTemplateOrderCreation: 0,
})
expect(createNewOrder.isDone()).to.be.true
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this test is failing on my local, I think there is no retry in code 🤔

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Correct, check the description 😉

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OK do you know when it will be fixed ?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No idea 🤷 I hope it will be soon 🤞

src/create-template-orders.js Outdated Show resolved Hide resolved
@lojzatran lojzatran requested a review from ahmetoz March 7, 2022 10:11
@lojzatran lojzatran merged commit 21660f8 into main Mar 7, 2022
@lojzatran lojzatran deleted the add_unit_tests branch March 7, 2022 14:20
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants