The buildPayload unit test of the bradesco provider
had a problem, some times the test failed and others it
didn't. The issue was that the dates used on the comparison
were not using the moment-timezone library, so if the test
ran late on a day, it would think it is the next day and
the buildPayload function which uses moment-timezone
would get the correct date on the correct timezone. This
commit fixes this issue by adding the timezone to the test.
Your checklist for this pull request
:rotating_light: Please review this items for a good pull request. :four_leaf_clover:
Description
The
buildPayload
unit test of thebradesco
provider had a problem, some times the test failed and others it didn't. The issue was that the dates used on the comparison were not using themoment-timezone
library, so if the test ran late on a day, it would think it is the next day and thebuildPayload
function which usesmoment-timezone
would get the correct date on the correct timezone. This commit fixes this issue by adding the timezone to the test.Your checklist for this pull request
:rotating_light: Please review this items for a good pull request. :four_leaf_clover:
In a good pull request, everything above is true :relaxed: